/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 232 Equivalence<Object> keyEquivalence; field in CacheBuilder 292 CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in CacheBuilder 293 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence() 294 keyEquivalence = checkNotNull(equivalence); in keyEquivalence() 299 return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence() 859 if (keyEquivalence != null) { in toString()
|
D | LocalCache.java | 178 final Equivalence<Object> keyEquivalence; field in LocalCache 242 keyEquivalence = builder.getKeyEquivalence(); in LocalCache() 1839 int h = keyEquivalence.hash(key); in hash() 2232 && map.keyEquivalence.equivalent(key, entryKey)) { in lockedGetOrLoad() 2421 && map.keyEquivalence.equivalent(key, entryKey)) { in insertLoadingValueReference() 2711 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry() 2844 && map.keyEquivalence.equivalent(key, entryKey)) { in put() 2980 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 3033 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 3080 && map.keyEquivalence.equivalent(key, entryKey)) { in remove() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | MapMaker.java | 128 Equivalence<Object> keyEquivalence; field in MapMaker 147 MapMaker keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in MapMaker 148 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence() 149 keyEquivalence = checkNotNull(equivalence); in keyEquivalence() 155 return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence() 618 if (keyEquivalence != null) { in toString()
|
D | ComputingConcurrentHashMap.java | 107 && map.keyEquivalence.equivalent(key, entryKey)) { in getOrCompute() 382 return new ComputingSerializationProxy<K, V>(keyStrength, valueStrength, keyEquivalence, in writeReplace() 392 Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, in ComputingSerializationProxy() argument 396 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
|
D | MapMakerInternalMap.java | 156 final Equivalence<Object> keyEquivalence; field in MapMakerInternalMap 201 keyEquivalence = builder.getKeyEquivalence(); in MapMakerInternalMap() 1851 int h = keyEquivalence.hash(key); in hash() 2413 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry() 2516 && map.keyEquivalence.equivalent(key, entryKey)) { in put() 2649 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 2700 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 2745 && map.keyEquivalence.equivalent(key, entryKey)) { in remove() 2788 && map.keyEquivalence.equivalent(key, entryKey)) { in remove() 2933 && map.keyEquivalence.equivalent(key, entryKey)) { in reclaimValue() [all …]
|
D | GenericMapMaker.java | 70 abstract GenericMapMaker<K0, V0> keyEquivalence(Equivalence<Object> equivalence); in keyEquivalence() method in GenericMapMaker
|
D | Interners.java | 70 .keyEquivalence(Equivalence.equals())
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilder.java | 226 Equivalence<Object> keyEquivalence; field in CacheBuilder 246 return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence() 614 if (keyEquivalence != null) { in toString()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ConcurrentHashMultisetTest.java | 376 .keyEquivalence(Equivalence.identity()); 415 .keyEquivalence(Equivalence.equals()); 461 .keyEquivalence(Equivalence.identity());
|
D | MapMakerInternalMapTest.java | 81 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults() 120 makeMap(createMapMaker().keyEquivalence(testEquivalence)); in testSetKeyEquivalence() 121 assertSame(testEquivalence, map.keyEquivalence); in testSetKeyEquivalence() 246 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 555 assertEquals("keyEquivalence", a.keyEquivalence, b.keyEquivalence); in assertCacheBuilderEquivalence()
|
D | LocalCacheTest.java | 156 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults() 197 makeLocalCache(createCacheBuilder().keyEquivalence(testEquivalence)); in testSetKeyEquivalence() 198 assertSame(testEquivalence, map.keyEquivalence); in testSetKeyEquivalence() 218 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence() 369 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
|