- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 59 for AtomicReference (0.19 seconds)
-
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/fess/app/job/ScriptExecutorJobTest.java
@Test public void test_process_withJobLogId_setsIdOnJobLog() { final ScheduledJob scheduledJob = createTestScheduledJob("proc-1", true); final AtomicReference<JobLog> storedJobLog = new AtomicReference<>(); registerComponents(scheduledJob, storedJobLog); // Create runtime with JOB_LOG_ID parameter final Map<String, Object> params = new HashMap<>();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 11:55:54 GMT 2026 - 13.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/DataStoreTest.java
final AtomicBoolean storeCalled = new AtomicBoolean(false); final AtomicReference<DataConfig> capturedConfig = new AtomicReference<>(); final AtomicReference<IndexUpdateCallback> capturedCallback = new AtomicReference<>(); final AtomicReference<DataStoreParams> capturedParams = new AtomicReference<>(); dataStore = new DataStore() { @Override
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.2K bytes - Click Count (0) -
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/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) -
guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
* That is, even if exactly the same method works from inside the common.eventbus package tests, * it can fail here. */ public void testAnonymous() { AtomicReference<String> holder = new AtomicReference<>(); AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 1.9K 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)