- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for RemovalNotification (0.19 sec)
-
android/guava/src/com/google/common/cache/RemovalNotification.java
* null} if they were already garbage collected. * * @since 19.0 */ public static <K, V> RemovalNotification<K, V> create( @CheckForNull K key, @CheckForNull V value, RemovalCause cause) { return new RemovalNotification<>(key, value, cause); } private RemovalNotification(@CheckForNull K key, @CheckForNull V value, RemovalCause cause) { super(key, value); this.cause = checkNotNull(cause); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 01 20:46:24 UTC 2022 - 2.5K bytes - Viewed (0) -
guava/src/com/google/common/cache/RemovalListener.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/TestingRemovalListeners.java
} /** {@link RemovalListener} that adds all {@link RemovalNotification} objects to a queue. */ @GwtIncompatible // ConcurrentLinkedQueue static class QueuingRemovalListener<K, V> extends ConcurrentLinkedQueue<RemovalNotification<K, V>> implements RemovalListener<K, V> { @Override public void onRemoval(RemovalNotification<K, V> notification) { add(notification); } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/RemovalNotificationTest.java
import junit.framework.TestCase; /** * Unit tests of {@link RemovalNotification}. * * @author Ben Yu */ public class RemovalNotificationTest extends TestCase { public void testEquals() { new EqualsTester() .addEqualityGroup( RemovalNotification.create("one", 1, RemovalCause.EXPLICIT), RemovalNotification.create("one", 1, RemovalCause.REPLACED))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/TestingRemovalListeners.java
} /** {@link RemovalListener} that adds all {@link RemovalNotification} objects to a queue. */ @GwtIncompatible // ConcurrentLinkedQueue static class QueuingRemovalListener<K, V> extends ConcurrentLinkedQueue<RemovalNotification<K, V>> implements RemovalListener<K, V> { @Override public void onRemoval(RemovalNotification<K, V> notification) { add(notification); } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/RemovalNotificationTest.java
import junit.framework.TestCase; /** * Unit tests of {@link RemovalNotification}. * * @author Ben Yu */ public class RemovalNotificationTest extends TestCase { public void testEquals() { new EqualsTester() .addEqualityGroup( RemovalNotification.create("one", 1, RemovalCause.EXPLICIT), RemovalNotification.create("one", 1, RemovalCause.REPLACED))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.2K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/RemovalListener.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/NullCacheTest.java
.maximumSize(0) .removalListener(listener) .build(constantLoader(computed)); Object key = new Object(); assertSame(computed, cache.getUnchecked(key)); RemovalNotification<Object, Object> notification = listener.remove(); assertSame(key, notification.getKey()); assertSame(computed, notification.getValue()); assertSame(RemovalCause.SIZE, notification.getCause());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/NullCacheTest.java
.maximumSize(0) .removalListener(listener) .build(constantLoader(computed)); Object key = new Object(); assertSame(computed, cache.getUnchecked(key)); RemovalNotification<Object, Object> notification = listener.remove(); assertSame(key, notification.getKey()); assertSame(computed, notification.getValue()); assertSame(RemovalCause.SIZE, notification.getCause());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
// contain the computed value (b -> b), since the clear() happened before the computation // completed. assertEquals(1, listener.size()); RemovalNotification<String, String> notification = listener.remove(); assertEquals("a", notification.getKey()); assertEquals("a", notification.getValue()); assertEquals(1, cache.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 24.9K bytes - Viewed (0)