- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 24 for CopyOnWriteArrayList (0.09 seconds)
-
src/main/java/org/codelibs/fess/entity/ChatSession.java
synchronized (messagesLock) { if (messages == null) { this.messages = null; } else if (messages instanceof CopyOnWriteArrayList) { this.messages = messages; } else { this.messages = new CopyOnWriteArrayList<>(messages); } } } /** * Adds a message to this session and updates the last accessed timestamp.
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 07 01:53:06 GMT 2026 - 6.7K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/CollectionsUtil.java
* Creates and returns a new instance of {@link CopyOnWriteArrayList}. * * @param <E> the element type of {@link CopyOnWriteArrayList} * @return a new instance of {@link CopyOnWriteArrayList} * @see CopyOnWriteArrayList#CopyOnWriteArrayList() */ public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList() { return new CopyOnWriteArrayList<>(); } /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 49.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/Lists.java
public static <E extends @Nullable Object> CopyOnWriteArrayList<E> newCopyOnWriteArrayList() { return new CopyOnWriteArrayList<>(); } /** * Creates a {@code CopyOnWriteArrayList} instance containing the given elements. * * @param elements the elements that the list should contain, in order * @return a new {@code CopyOnWriteArrayList} containing those elements
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 16:38:09 GMT 2026 - 42.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Lists.java
public static <E extends @Nullable Object> CopyOnWriteArrayList<E> newCopyOnWriteArrayList() { return new CopyOnWriteArrayList<>(); } /** * Creates a {@code CopyOnWriteArrayList} instance containing the given elements. * * @param elements the elements that the list should contain, in order * @return a new {@code CopyOnWriteArrayList} containing those elements
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 16:38:09 GMT 2026 - 42.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorConcurrencyTest.java
* Tests the improvements made to thread safety using CopyOnWriteArrayList. */ public class RankFusionProcessorConcurrencyTest extends UnitFessTestCase { private static final String ID_FIELD = "_id"; /** * Test concurrent registration of searchers from multiple threads. * Verifies that CopyOnWriteArrayList handles concurrent modifications safely. */ @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
import com.google.common.collect.testing.features.ListFeature; import com.google.common.testing.SerializableTester; import java.lang.reflect.Method; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import org.junit.Ignore; /** * A generic JUnit test which tests {@code subList()} operations on a list. Can't be invoked * directly; please see {@link com.google.common.collect.testing.ListTestSuiteBuilder}. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
import com.google.common.collect.testing.features.ListFeature; import com.google.common.testing.SerializableTester; import java.lang.reflect.Method; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import org.junit.Ignore; /** * A generic JUnit test which tests {@code subList()} operations on a list. Can't be invoked * directly; please see {@link com.google.common.collect.testing.ListTestSuiteBuilder}. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java
new TestStringListGenerator() { @Override public List<String> create(String[] elements) { return new CopyOnWriteArrayList<>(MinimalCollection.of(elements)); } }) .named("CopyOnWriteArrayList") .withFeatures( ListFeature.SUPPORTS_ADD_WITH_INDEX, ListFeature.SUPPORTS_REMOVE_WITH_INDEX,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 04 15:04:05 GMT 2025 - 12K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
*/ @Test public void testConcurrentListenerInvocation() throws Exception { // This test verifies CopyOnWriteArrayList allows safe iteration assertTrue(fesenClient.onConnectListenerList instanceof java.util.concurrent.CopyOnWriteArrayList); } /** * Test: Retry logic correctly enforces maxRetryCountCreated: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Mon Jan 12 06:25:38 GMT 2026 - 16.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.internal.connection import java.io.IOException import java.util.concurrent.CopyOnWriteArrayList import java.util.concurrent.LinkedBlockingDeque import java.util.concurrent.TimeUnit import okhttp3.internal.concurrent.Task import okhttp3.internal.concurrent.TaskRunner
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 5.8K bytes - Click Count (0)