- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 43 for WeakReference (0.12 sec)
-
guava-tests/test/com/google/common/cache/CacheReferencesTest.java
import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterables; import java.lang.ref.WeakReference; import junit.framework.TestCase; /** * Tests of basic {@link LoadingCache} operations with all possible combinations of key & value * strengths. * * @author mike nonemacher */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 6.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
Iterator<Object> itr = new AbstractIterator<Object>() { @Override public Object computeNext() { return new Object(); } }; WeakReference<Object> ref = new WeakReference<>(itr.next()); GcFinalization.awaitClear(ref); } public void testDefaultBehaviorOfPeekForEmptyIteration() { AbstractIterator<Integer> empty =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
Iterator<Object> itr = new AbstractIterator<Object>() { @Override public Object computeNext() { return new Object(); } }; WeakReference<Object> ref = new WeakReference<>(itr.next()); GcFinalization.awaitClear(ref); } public void testDefaultBehaviorOfPeekForEmptyIteration() { AbstractIterator<Integer> empty =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
return this; } /** * Instructs the {@link InternerBuilder} to build a weak interner. * * @see Interners#newWeakInterner() */ @GwtIncompatible("java.lang.ref.WeakReference") public InternerBuilder weak() { this.strong = false; return this; } /** * Sets the concurrency level that will be used by the to-be-built {@link Interner}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interners.java
return this; } /** * Instructs the {@link InternerBuilder} to build a weak interner. * * @see Interners#newWeakInterner() */ @GwtIncompatible("java.lang.ref.WeakReference") public InternerBuilder weak() { this.strong = false; return this; } /** * Sets the concurrency level that will be used by the to-be-built {@link Interner}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/internal/Finalizer.java
* the License. */ package com.google.common.base.internal; import java.lang.ref.PhantomReference; import java.lang.ref.Reference; import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.CheckForNull;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Aug 23 12:54:09 UTC 2023 - 9.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
@GwtIncompatible @J2ObjCIncompatible // gc @AndroidIncompatible public void testCancellationWithReferencedObject() throws Exception { Object toBeGCed = new Object(); WeakReference<Object> ref = new WeakReference<>(toBeGCed); final SettableFuture<@Nullable Void> settableFuture = SettableFuture.create(); ListenableFuture<?> ignored = serializer.submitAsync(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
@GwtIncompatible @J2ObjCIncompatible // gc @AndroidIncompatible public void testCancellationWithReferencedObject() throws Exception { Object toBeGCed = new Object(); WeakReference<Object> ref = new WeakReference<>(toBeGCed); final SettableFuture<@Nullable Void> settableFuture = SettableFuture.create(); ListenableFuture<?> ignored = serializer.submitAsync(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ServiceManager.java
copy = ImmutableList.<Service>of(new NoOpService()); } this.state = new ServiceManagerState(copy); this.services = copy; WeakReference<ServiceManagerState> stateReference = new WeakReference<>(state); for (Service service : copy) { service.addListener(new ServiceListener(service, stateReference), directExecutor());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 33.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ServiceManager.java
copy = ImmutableList.<Service>of(new NoOpService()); } this.state = new ServiceManagerState(copy); this.services = copy; WeakReference<ServiceManagerState> stateReference = new WeakReference<>(state); for (Service service : copy) { service.addListener(new ServiceListener(service, stateReference), directExecutor());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 33.2K bytes - Viewed (0)