- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for RemovalNotification (0.39 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 01 20:46:24 UTC 2022 - 2.5K bytes - Viewed (0) -
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: Wed Jun 12 16:38:11 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 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: Wed Jun 12 16:38:11 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.2K bytes - Viewed (0) -
platforms/jvm/scala/src/main/java/org/gradle/api/internal/tasks/scala/GuavaBackedClassLoaderCache.java
package org.gradle.api.internal.tasks.scala; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.cache.RemovalListener; import com.google.common.cache.RemovalNotification; import java.util.concurrent.Callable; /** * Simple guava-based classloader cache. Usually used with a very small size (< 10), * as classloaders are strongly referenced. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 15:43:33 UTC 2023 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/RemovalListener.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/LoggingEvictionListener.java
*/ package org.gradle.cache.internal; import com.google.common.cache.Cache; import com.google.common.cache.RemovalCause; import com.google.common.cache.RemovalListener; import com.google.common.cache.RemovalNotification; import org.slf4j.Logger; import java.util.concurrent.atomic.AtomicInteger; class LoggingEvictionListener implements RemovalListener<Object, Object> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:36 UTC 2024 - 2.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: Wed Jun 12 16:38:11 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.4K bytes - Viewed (0)