- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for RemovalNotification (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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( @Nullable K key, @Nullable V value, RemovalCause cause) { return new RemovalNotification<>(key, value, cause); } private RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) { super(key, value); this.cause = checkNotNull(cause); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 2.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/NullCacheTest.java
.removalListener(listener) .build(constantLoader(computed)); Object key = new Object(); assertThat(cache.getUnchecked(key)).isSameInstanceAs(computed); RemovalNotification<Object, Object> notification = listener.remove(); assertThat(notification.getKey()).isSameInstanceAs(key); assertThat(notification.getValue()).isSameInstanceAs(computed);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:07:52 GMT 2025 - 4.6K bytes - Click Count (0) -
guava/src/com/google/common/cache/RemovalListener.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 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);
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) -
android/guava-tests/test/com/google/common/cache/RemovalNotificationTest.java
/** * Unit tests of {@link RemovalNotification}. * * @author Ben Yu */ @NullUnmarked public class RemovalNotificationTest extends TestCase { public void testEquals() { new EqualsTester() .addEqualityGroup( RemovalNotification.create("one", 1, RemovalCause.EXPLICIT), RemovalNotification.create("one", 1, RemovalCause.REPLACED))Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.3K bytes - Click Count (0) -
guava/src/com/google/common/cache/RemovalListeners.java
*/ public static <K, V> RemovalListener<K, V> asynchronous( RemovalListener<K, V> listener, Executor executor) { checkNotNull(listener); checkNotNull(executor); return (RemovalNotification<K, V> notification) -> executor.execute(() -> listener.onRemoval(notification)); }
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) -
src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java
import org.lastaflute.di.core.factory.SingletonLaContainerFactory; import org.lastaflute.job.LaJobRuntime; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.cache.RemovalNotification; import groovy.lang.Binding; import groovy.lang.GroovyClassLoader; import groovy.lang.Script; import jakarta.annotation.PostConstruct; import jakarta.annotation.PreDestroy; /**
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 11.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(map.values().removeAll(ImmutableSet.of("bar"))).isTrue(); assertThat(map).hasSize(1); } public void testComputeIfAbsent_removalListener() { List<RemovalNotification<Object, Object>> notifications = new ArrayList<>(); RemovalListener<Object, Object> removalListener = notifications::add; Cache<Object, Object> cache =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 116.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(listener.isEmpty()).isTrue(); } static <K, V> void assertNotified( QueuingRemovalListener<K, V> listener, K key, V value, RemovalCause cause) { RemovalNotification<K, V> notification = listener.remove(); assertThat(notification.getKey()).isSameInstanceAs(key); assertThat(notification.getValue()).isSameInstanceAs(value);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 114.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/CapacityEnforcingMap.java
boolean removal = (maximumSize == LocalCache.UNSET_INT) ? false : (size() > maximumSize); if ((removalListener != null) && removal) { removalListener.onRemoval( RemovalNotification.create( ignored.getKey(), ignored.getValue().getValue(), RemovalCause.SIZE)); } statsCounter.recordEviction(); return removal; }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)