Home
last modified time | relevance | path

Searched refs:valueEquivalence (Results 1 – 10 of 10) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java217 Equivalence<Object> valueEquivalence; field in CacheBuilder
266 CacheBuilder<K, V> valueEquivalence(Equivalence<Object> equivalence) { in valueEquivalence() method in CacheBuilder
267 checkState(valueEquivalence == null, in valueEquivalence()
268 "value equivalence was already set to %s", valueEquivalence); in valueEquivalence()
269 this.valueEquivalence = checkNotNull(equivalence); in valueEquivalence()
274 return firstNonNull(valueEquivalence, getValueStrength().defaultEquivalence()); in getValueEquivalence()
813 if (valueEquivalence != null) { in toString()
DLocalCache.java179 final Equivalence<Object> valueEquivalence; field in LocalCache
240 valueEquivalence = builder.getValueEquivalence(); in LocalCache()
2837 if (map.valueEquivalence.equivalent(value, entryValue)) { in containsValue()
3024 if (map.valueEquivalence.equivalent(oldValue, entryValue)) { in replace()
3209 if (map.valueEquivalence.equivalent(value, entryValue)) { in remove()
4162 if (v != null && valueEquivalence.equivalent(value, v)) {
4544 return v != null && valueEquivalence.equivalent(e.getValue(), v);
4590 final Equivalence<Object> valueEquivalence;
4607 cache.valueEquivalence,
4620 Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
[all …]
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java136 Equivalence<Object> valueEquivalence; field in MapMaker
179 MapMaker valueEquivalence(Equivalence<Object> equivalence) { in valueEquivalence() method in MapMaker
180 checkState(valueEquivalence == null, in valueEquivalence()
181 "value equivalence was already set to %s", valueEquivalence); in valueEquivalence()
182 this.valueEquivalence = checkNotNull(equivalence); in valueEquivalence()
188 return firstNonNull(valueEquivalence, getValueStrength().defaultEquivalence()); in getValueEquivalence()
704 if (valueEquivalence != null) { in toString()
DComputingConcurrentHashMap.java414 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, in writeReplace()
423 Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, in ComputingSerializationProxy() argument
427 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
DMapMakerInternalMap.java160 final Equivalence<Object> valueEquivalence; field in MapMakerInternalMap
203 valueEquivalence = builder.getValueEquivalence(); in MapMakerInternalMap()
2519 if (map.valueEquivalence.equivalent(value, entryValue)) { in containsValue()
2702 if (map.valueEquivalence.equivalent(oldValue, entryValue)) { in replace()
2828 if (map.valueEquivalence.equivalent(value, entryValue)) { in remove()
3538 if (v != null && valueEquivalence.equivalent(value, v)) {
3904 return v != null && valueEquivalence.equivalent(e.getValue(), v);
3939 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize,
3954 final Equivalence<Object> valueEquivalence;
3964 Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
[all …]
DGenericMapMaker.java68 abstract GenericMapMaker<K0, V0> valueEquivalence(Equivalence<Object> equivalence); in valueEquivalence() method in GenericMapMaker
DMaps.java352 Equivalence<? super V> valueEquivalence) { in difference() argument
353 Preconditions.checkNotNull(valueEquivalence); in difference()
366 if (valueEquivalence.equivalent(leftValue, rightValue)) { in difference()
/external/guava/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java127 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testDefaults()
169 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testSetKeyEquivalence()
186 makeLocalCache(createCacheBuilder().valueEquivalence(testEquivalence)); in testSetValueEquivalence()
187 assertSame(testEquivalence, map.valueEquivalence); in testSetValueEquivalence()
336 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence); in checkStrength()
2332 assertEquals(localCacheOne.valueEquivalence, localCacheTwo.valueEquivalence); in testSerializationProxyLoading()
2333 assertEquals(localCacheOne.valueEquivalence, localCacheTwo.valueEquivalence); in testSerializationProxyLoading()
2349 assertEquals(localCacheTwo.valueEquivalence, localCacheThree.valueEquivalence); in testSerializationProxyLoading()
2350 assertEquals(localCacheTwo.valueEquivalence, localCacheThree.valueEquivalence); in testSerializationProxyLoading()
2387 assertEquals(localCacheOne.valueEquivalence, localCacheTwo.valueEquivalence); in testSerializationProxyManual()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java82 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testDefaults()
122 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testSetKeyEquivalence()
139 makeMap(createMapMaker().valueEquivalence(testEquivalence)); in testSetValueEquivalence()
140 assertSame(testEquivalence, map.valueEquivalence); in testSetValueEquivalence()
273 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence); in checkStrength()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMaps.java349 Equivalence<? super V> valueEquivalence) { in difference() argument
350 Preconditions.checkNotNull(valueEquivalence); in difference()
363 if (valueEquivalence.equivalent(leftValue, rightValue)) { in difference()