- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 50 for AtomicReference (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/util/concurrent/Atomics.java
public final class Atomics { private Atomics() {} /** * Creates an {@code AtomicReference} instance with no initial value. * * @return a new {@code AtomicReference} with no initial value */ public static <V> AtomicReference<@Nullable V> newReference() { return new AtomicReference<>(); } /** * Creates an {@code AtomicReference} instance with the given initial value. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.4K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
@Test public void test_OnConnect_ReceivesBothRequestAndConnection() throws Exception { // ## Arrange ## AtomicReference<CurlRequest> receivedRequest = new AtomicReference<>(); AtomicReference<HttpURLConnection> receivedConnection = new AtomicReference<>(); CurlRequest req = new OpenOverrideCurlRequest(Curl.Method.GET, "http://dummy",Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
assertThat(sepLoader).isSameInstanceAs(sepStopwatchC.getClassLoader()); AtomicReference<Object> sepStopwatchA = new AtomicReference<Object>(sepStopwatchC.getMethod("createUnstarted").invoke(null)); AtomicReference<WeakReference<?>> sepStopwatchRef = new AtomicReference<WeakReference<?>>( (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get()));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 26 02:41:17 GMT 2026 - 7.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java
assertTrue(secondCalled.get()); } @Test public void test_dispatchEvent_eventData() { final AtomicReference<String> receivedData = new AtomicReference<>(); final AtomicReference<String> receivedInstanceId = new AtomicReference<>(); coordinatorHelper.addEventHandler("config_updated", event -> { receivedData.set(event.data);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 58.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
@NullUnmarked public class AbstractLoadingCacheTest extends TestCase { public void testGetUnchecked_checked() { Exception cause = new Exception(); AtomicReference<Object> valueRef = new AtomicReference<>(); LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { @Override public Object get(Object key) throws ExecutionException { Object v = valueRef.get();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/TagsTest.kt
val tags = EmptyTags val atomicTags = AtomicReference<Tags>(tags) assertThat(atomicTags.computeIfAbsent(String::class) { "a" }).isEqualTo("a") assertThat(atomicTags.get()[String::class]).isEqualTo("a") } @Test fun computeIfAbsentWhenPresent() { val tags = EmptyTags.plus(String::class, "a") val atomicTags = AtomicReference(tags)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Oct 24 11:37:46 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerErrorHandlingTest.java
@Override public void close() { } }; CountDownLatch latch = new CountDownLatch(1); AtomicReference<SuggestIndexResponse> responseRef = new AtomicReference<>(); AtomicReference<Throwable> errorRef = new AtomicReference<>(); Deferred<SuggestIndexResponse>.Promise promise = suggester.indexer().indexFromQueryLog(emptyReader, 10, 0);Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 18.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
final Deferred<SuggestResponse> deferred = new Deferred<>(); final AtomicInteger callbackCount = new AtomicInteger(0); final AtomicReference<String> receivedIndex = new AtomicReference<>(); deferred.promise().then(response -> { callbackCount.incrementAndGet(); receivedIndex.set(response.getIndex()); });
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 21.1K bytes - Click Count (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/logging/AccumulatingLogger.java
* logger is created at start, and it exists while no logging is available yet. */ public class AccumulatingLogger implements Logger { private final AtomicReference<List<Entry>> entries = new AtomicReference<>(new CopyOnWriteArrayList<>()); @Override public void log(Level level, String message, Throwable error) { requireNonNull(level, "level"); requireNonNull(message, "message");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 31 20:56:58 GMT 2025 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
AtomicBoolean actualIsOccupied = new AtomicBoolean(); AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean(); AtomicInteger actualOccupiedDepth = new AtomicInteger(); AtomicReference<Throwable> thrown = new AtomicReference<>(); joinUninterruptibly( startThread( () -> { try { actualIsOccupied.set(monitor.isOccupied());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 5K bytes - Click Count (0)