Searched refs:RemovalCause (Results 1 - 10 of 10) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
H A DRemovalCause.java32 public enum RemovalCause { enum
H A DRemovalNotification.java43 private final RemovalCause cause;
45 RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) {
54 public RemovalCause getCause() {
60 * {@link RemovalCause#EXPLICIT} nor {@link RemovalCause#REPLACED}).
H A DLocalCache.java2270 enqueueNotification(entryKey, hash, valueReference, RemovalCause.COLLECTED);
2274 enqueueNotification(entryKey, hash, valueReference, RemovalCause.EXPIRED);
2652 if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) {
2657 if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) {
2666 void enqueueNotification(ReferenceEntry<K, V> entry, RemovalCause cause) {
2672 RemovalCause cause) {
2697 if (!removeEntry(e, e.getHash(), RemovalCause.SIZE)) {
2880 enqueueNotification(key, hash, valueReference, RemovalCause.COLLECTED);
2899 enqueueNotification(key, hash, valueReference, RemovalCause.REPLACED);
3016 first, e, entryKey, hash, valueReference, RemovalCause
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DMapMaker.java133 RemovalCause nullRemovalCause;
245 this.nullRemovalCause = RemovalCause.SIZE;
469 this.nullRemovalCause = RemovalCause.EXPIRED;
518 this.nullRemovalCause = RemovalCause.EXPIRED;
538 * after removing an element for any reason (see removal causes in {@link RemovalCause}). It will
745 private final RemovalCause cause;
747 RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) {
755 public RemovalCause getCause() {
761 * {@link RemovalCause#EXPLICIT} nor {@link RemovalCause#REPLACE
771 enum RemovalCause { enum in class:MapMaker
[all...]
H A DComputingConcurrentHashMap.java23 import com.google.common.collect.MapMaker.RemovalCause;
116 enqueueNotification(entryKey, hash, value, RemovalCause.COLLECTED);
120 enqueueNotification(entryKey, hash, value, RemovalCause.EXPIRED);
192 enqueueNotification(key, hash, value, RemovalCause.REPLACED);
H A DMapMakerInternalMap.java25 import com.google.common.collect.MapMaker.RemovalCause;
2385 if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) {
2393 void enqueueNotification(ReferenceEntry<K, V> entry, RemovalCause cause) {
2397 void enqueueNotification(@Nullable K key, int hash, @Nullable V value, RemovalCause cause) {
2416 if (!removeEntry(e, e.getHash(), RemovalCause.SIZE)) {
2561 enqueueNotification(key, hash, entryValue, RemovalCause.COLLECTED);
2577 enqueueNotification(key, hash, entryValue, RemovalCause.REPLACED);
2693 enqueueNotification(entryKey, hash, entryValue, RemovalCause.COLLECTED);
2704 enqueueNotification(key, hash, entryValue, RemovalCause.REPLACED);
2744 enqueueNotification(entryKey, hash, entryValue, RemovalCause
[all...]
/external/guava/guava-tests/test/com/google/common/cache/
H A DNullCacheTest.java54 assertSame(RemovalCause.SIZE, notification.getCause());
71 assertSame(RemovalCause.SIZE, notification.getCause());
88 assertSame(RemovalCause.SIZE, notification.getCause());
H A DLocalCacheTest.java697 assertNotified(listener, one, computedObject, RemovalCause.REPLACED);
737 assertNotified(listener, one, two, RemovalCause.EXPLICIT);
741 assertNotified(listener, two, three, RemovalCause.EXPLICIT);
747 assertNotified(listener, three, four, RemovalCause.EXPLICIT);
753 assertNotified(listener, four, five, RemovalCause.EXPLICIT);
759 assertNotified(listener, five, six, RemovalCause.EXPLICIT);
779 assertNotified(listener, one, two, RemovalCause.REPLACED);
783 assertNotified(listener, one, three, RemovalCause.REPLACED);
786 assertNotified(listener, one, four, RemovalCause.REPLACED);
789 assertNotified(listener, one, five, RemovalCause
[all...]
/external/guava/guava-tests/test/com/google/common/collect/
H A DMapMakerInternalMapTest.java28 import com.google.common.collect.MapMaker.RemovalCause;
320 assertNotified(listener, one, two, RemovalCause.EXPLICIT);
324 assertNotified(listener, two, three, RemovalCause.EXPLICIT);
330 assertNotified(listener, three, four, RemovalCause.EXPLICIT);
336 assertNotified(listener, four, five, RemovalCause.EXPLICIT);
342 assertNotified(listener, five, six, RemovalCause.EXPLICIT);
363 assertNotified(listener, one, two, RemovalCause.REPLACED);
367 assertNotified(listener, one, three, RemovalCause.REPLACED);
370 assertNotified(listener, one, four, RemovalCause.REPLACED);
373 assertNotified(listener, one, five, RemovalCause
[all...]
H A DComputingConcurrentHashMapTest.java29 import com.google.common.collect.MapMaker.RemovalCause;
300 assertNotified(listener, one, computedObject, RemovalCause.REPLACED);

Completed in 105 milliseconds