- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for RemovalListener (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava/src/com/google/common/cache/RemovalListener.java
* Object} if any key is acceptable * @author Charles Fry * @since 10.0 */ @GwtCompatible @FunctionalInterface public interface RemovalListener<K, V> { /** * Notifies the listener that a removal occurred at some point in the past. * * <p>This does not always signify that the key is now absent from the cache, as it may have * already been re-added.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/RemovalListener.java
* @param <V> the most general type of values this listener can listen for; for example {@code * Object} if any key is acceptable * @author Charles Fry * @since 10.0 */ @GwtCompatible public interface RemovalListener<K, V> { /** * Notifies the listener that a removal occurred at some point in the past. * * <p>This does not always signify that the key is now absent from the cache, as it may have * already been re-added.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/RemovalListeners.java
private RemovalListeners() {} /** * Returns a {@code RemovalListener} which processes all eviction notifications using {@code * executor}. * * @param listener the backing listener * @param executor the executor with which removal notifications are asynchronously executed */ public static <K, V> RemovalListener<K, V> asynchronous( RemovalListener<K, V> listener, Executor executor) { checkNotNull(listener);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/CapacityEnforcingMap.java
boolean accessOrder, long maximumSize, StatsCounter statsCounter, @Nullable RemovalListener<? super K, ? super V> removalListener) { super(initialCapacity, loadFactor, accessOrder); this.maximumSize = maximumSize; this.statsCounter = statsCounter; this.removalListener = removalListener; } @Override protected boolean removeEldestEntry(Entry<K, Timestamped<V>> ignored) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 2.1K bytes - Click Count (0) -
guava/src/com/google/common/cache/RemovalListeners.java
private RemovalListeners() {} /** * Returns a {@code RemovalListener} which processes all eviction notifications using {@code * executor}. * * @param listener the backing listener * @param executor the executor with which removal notifications are asynchronously executed */ public static <K, V> RemovalListener<K, V> asynchronous( RemovalListener<K, V> listener, Executor executor) { checkNotNull(listener);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/TestingRemovalListeners.java
import java.util.concurrent.atomic.AtomicInteger; import org.jspecify.annotations.Nullable; /** * Utility {@link RemovalListener} implementations intended for use in testing. * * @author mike nonemacher */ @GwtCompatible final class TestingRemovalListeners { /** Returns a new no-op {@code RemovalListener}. */ static <K, V> NullRemovalListener<K, V> nullRemovalListener() { return new NullRemovalListener<>(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 3.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
} public void testComputeIfPresentRemove() { List<RemovalNotification<Integer, Integer>> notifications = new ArrayList<>(); Cache<Integer, Integer> cache = CacheBuilder.newBuilder() .removalListener((RemovalNotification<Integer, Integer> n) -> notifications.add(n)) .build(); cache.put(1, 2); // explicitly remove the existing value cache.asMap().computeIfPresent(1, (key, value) -> null);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 6.4K bytes - Click Count (0)