/external/guava/guava/src/com/google/common/cache/ |
H A D | RemovalCause.java | 32 public enum RemovalCause { enum
|
H A D | RemovalNotification.java | 43 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 D | LocalCache.java | 2270 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 D | MapMaker.java | 133 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 D | ComputingConcurrentHashMap.java | 23 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 D | MapMakerInternalMap.java | 25 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 D | NullCacheTest.java | 54 assertSame(RemovalCause.SIZE, notification.getCause()); 71 assertSame(RemovalCause.SIZE, notification.getCause()); 88 assertSame(RemovalCause.SIZE, notification.getCause());
|
H A D | LocalCacheTest.java | 697 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 D | MapMakerInternalMapTest.java | 28 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 D | ComputingConcurrentHashMapTest.java | 29 import com.google.common.collect.MapMaker.RemovalCause; 300 assertNotified(listener, one, computedObject, RemovalCause.REPLACED);
|