- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 166 for Reference (0.04 sec)
-
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
} @Override public void finalizeReferent() { finalizeReferentCalled = true; } } /** * Keeps a weak reference to the underlying reference queue. When this reference is cleared, we * know that the background thread has stopped and released its strong reference. */ private WeakReference<ReferenceQueue<Object>> queueReference; @Test public void testThatFinalizerStops() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 8.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
} @Override public void finalizeReferent() { finalizeReferentCalled = true; } } /** * Keeps a weak reference to the underlying reference queue. When this reference is cleared, we * know that the background thread has stopped and released its strong reference. */ private WeakReference<ReferenceQueue<Object>> queueReference; @Test public void testThatFinalizerStops() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 8.7K bytes - Viewed (0) -
.github/PULL_REQUEST_TEMPLATE.md
When adding links which point to resources within git repositories, like KEPs or supporting documentation, please reference a specific commit and avoid linking directly to the master branch. This ensures that links reference a specific point in time, rather than a document that may change over time.
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Fri Jun 06 14:40:00 UTC 2025 - 3.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
void executeAndCompare(ListIterator<E> reference, Iterator<E> target) { internalExecuteAndCompare(reference, target, NEXT_METHOD); } }; Stimulus<E, Iterator<E>> remove = new Stimulus<E, Iterator<E>>("remove") { @Override void executeAndCompare(ListIterator<E> reference, Iterator<E> target) { internalExecuteAndCompare(reference, target, REMOVE_METHOD); } };
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 20.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Equivalence.java
@ParametricNullness private final T reference; private Wrapper(Equivalence<? super @NonNull T> equivalence, @ParametricNullness T reference) { this.equivalence = checkNotNull(equivalence); this.reference = reference; } /** Returns the (possibly null) reference wrapped by this instance. */ @ParametricNullness public T get() { return reference; } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 10 01:47:55 UTC 2025 - 14.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Present.java
/** Implementation of an {@link Optional} containing a reference. */ @GwtCompatible final class Present<T> extends Optional<T> { private final T reference; Present(T reference) { this.reference = reference; } @Override public boolean isPresent() { return true; } @Override public T get() { return reference; } @Override public T or(T defaultValue) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Apr 15 22:14:00 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
() -> equalsTester.addEqualityGroup(reference, equalObject1, null)); } /** Test adding null equal object yields error */ public void testAddNullEqualObject() { assertThrows( NullPointerException.class, () -> equalsTester.addEqualityGroup(reference, (Object[]) null)); } /** * Test adding objects only by addEqualityGroup, with no reference object specified in the * constructor. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 13.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
return created; } // N.B. Draining the queue is only necessary to ensure that we don't accumulate empty references // in the array. We could skip this if we decide we don't care about holding on to Reference // objects indefinitely. private void drainQueue() { Reference<? extends L> ref; while ((ref = queue.poll()) != null) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 20.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
void executeAndCompare(ListIterator<E> reference, Iterator<E> target) { internalExecuteAndCompare(reference, target, NEXT_METHOD); } }; Stimulus<E, Iterator<E>> remove = new Stimulus<E, Iterator<E>>("remove") { @Override void executeAndCompare(ListIterator<E> reference, Iterator<E> target) { internalExecuteAndCompare(reference, target, REMOVE_METHOD); } };
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
* <li>clearing weak references to unreachable referents * <li>enqueuing weak references to unreachable referents in their reference queue * </ul> */ @DoNotMock("Implement with a lambda") public interface FinalizationPredicate { boolean isDone(); } /** * Waits until the given weak reference is cleared, invoking the garbage collector as necessary to
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 11.5K bytes - Viewed (0)