/external/guava/guava/src/com/google/common/collect/ |
D | ComputingConcurrentHashMap.java | 110 ValueReference<K, V> valueReference = e.getValueReference(); in getOrCompute() 210 private static final class ComputationExceptionReference<K, V> implements ValueReference<K, V> { 228 public ValueReference<K, V> copyFor(ReferenceQueue<V> queue, ReferenceEntry<K, V> entry) { in copyFor() 243 public void clear(ValueReference<K, V> newValue) {} in clear() 249 private static final class ComputedReference<K, V> implements ValueReference<K, V> { 267 public ValueReference<K, V> copyFor(ReferenceQueue<V> queue, ReferenceEntry<K, V> entry) { in copyFor() 282 public void clear(ValueReference<K, V> newValue) {} in clear() 285 private static final class ComputingValueReference<K, V> implements ValueReference<K, V> { 289 volatile ValueReference<K, V> computedReference = unset(); 308 public ValueReference<K, V> copyFor(ReferenceQueue<V> queue, ReferenceEntry<K, V> entry) { in copyFor() [all …]
|
D | MapMakerInternalMap.java | 298 <K, V> ValueReference<K, V> referenceValue( in referenceValue() 311 <K, V> ValueReference<K, V> referenceValue( in referenceValue() 324 <K, V> ValueReference<K, V> referenceValue( in referenceValue() 338 abstract <K, V> ValueReference<K, V> referenceValue( in referenceValue() 586 interface ValueReference<K, V> { interface in MapMakerInternalMap 609 ValueReference<K, V> copyFor(ReferenceQueue<V> queue, ReferenceEntry<K, V> entry); in copyFor() 617 void clear(@Nullable ValueReference<K, V> newValue); in clear() 630 static final ValueReference<Object, Object> UNSET = new ValueReference<Object, Object>() { 642 public ValueReference<Object, Object> copyFor( 658 public void clear(ValueReference<Object, Object> newValue) {} [all …]
|
/external/guava/guava/src/com/google/common/cache/ |
D | LocalCache.java | 375 <K, V> ValueReference<K, V> referenceValue( in referenceValue() 390 <K, V> ValueReference<K, V> referenceValue( in referenceValue() 406 <K, V> ValueReference<K, V> referenceValue( in referenceValue() 423 abstract <K, V> ValueReference<K, V> referenceValue( in referenceValue() 620 interface ValueReference<K, V> { interface in LocalCache 651 ValueReference<K, V> copyFor(ReferenceQueue<V> queue, ReferenceEntry<K, V> entry); in copyFor() 679 static final ValueReference<Object, Object> UNSET = new ValueReference<Object, Object>() { 696 public ValueReference<Object, Object> copyFor( 724 static <K, V> ValueReference<K, V> unset() { in unset() 725 return (ValueReference<K, V>) UNSET; in unset() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MapMakerInternalMapTest.java | 35 import com.google.common.collect.MapMakerInternalMap.ValueReference; 443 ValueReference<Object, Object> valueRefOne = map.newValueReference(entryOne, valueOne); in testNewEntry() 456 ValueReference<Object, Object> valueRefTwo = map.newValueReference(entryTwo, valueTwo); in testNewEntry() 529 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value); in testSegmentGetAndContains() 551 ValueReference<Object, Object> nullValueRef = map.newValueReference(nullEntry, nullValue); in testSegmentGetAndContains() 563 ValueReference<Object, Object> dummyValueRef = map.newValueReference(dummy, dummyValue); in testSegmentGetAndContains() 876 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value); in testExpand() 1012 ValueReference<Object, Object> valueRef = DummyValueReference.create(value, entry); in testExpand_cleanup() 1480 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value); in testEvictEntries() 1547 ValueReference<Object, Object> valueReference = entry.getValueReference(); in testDrainValueReferenceQueueOnWrite() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | LocalCacheTest.java | 44 import com.google.common.cache.LocalCache.ValueReference; 886 ValueReference<Object, Object> valueRefOne = map.newValueReference(entryOne, valueOne, 1); in testNewEntry() 899 ValueReference<Object, Object> valueRefTwo = map.newValueReference(entryTwo, valueTwo, 1); in testNewEntry() 975 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1); in testSegmentGetAndContains() 997 ValueReference<Object, Object> nullValueRef = map.newValueReference(nullEntry, nullValue, 1); in testSegmentGetAndContains() 1009 ValueReference<Object, Object> dummyValueRef = map.newValueReference(dummy, dummyValue, 1); in testSegmentGetAndContains() 1400 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1); in testExpand() 1535 ValueReference<Object, Object> valueRef = DummyValueReference.create(value, entry); in testExpand_cleanup() 2148 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1); in testEvictEntries() 2216 ValueReference<Object, Object> valueReference = entry.getValueReference(); in testDrainValueReferenceQueueOnWrite() [all …]
|
D | CacheTesting.java | 29 import com.google.common.cache.LocalCache.ValueReference; 67 ValueReference<K, V> valueRef = entry.getValueReference(); in simulateValueReclamation()
|