/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 216 Equivalence<Object> keyEquivalence; field in CacheBuilder 249 CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in CacheBuilder 250 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence() 251 keyEquivalence = checkNotNull(equivalence); in keyEquivalence() 256 return firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence() 810 if (keyEquivalence != null) { in toString()
|
D | LocalCache.java | 176 final Equivalence<Object> keyEquivalence; field in LocalCache 239 keyEquivalence = builder.getKeyEquivalence(); in LocalCache() 1888 int h = keyEquivalence.hash(key); in hash() 2263 && map.keyEquivalence.equivalent(key, entryKey)) { in lockedGetOrLoad() 2452 && map.keyEquivalence.equivalent(key, entryKey)) { in insertLoadingValueReference() 2738 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry() 2871 && map.keyEquivalence.equivalent(key, entryKey)) { in put() 3007 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 3060 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 3107 && map.keyEquivalence.equivalent(key, entryKey)) { in remove() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | MapMaker.java | 135 Equivalence<Object> keyEquivalence; field in MapMaker 159 MapMaker keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() method in MapMaker 160 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence() 161 keyEquivalence = checkNotNull(equivalence); in keyEquivalence() 167 return firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence()); in getKeyEquivalence() 701 if (keyEquivalence != null) { in toString()
|
D | ComputingConcurrentHashMap.java | 109 && map.keyEquivalence.equivalent(key, entryKey)) { in getOrCompute() 413 return new ComputingSerializationProxy<K, V>(keyStrength, valueStrength, keyEquivalence, in writeReplace() 423 Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, in ComputingSerializationProxy() argument 427 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
|
D | MapMakerInternalMap.java | 157 final Equivalence<Object> keyEquivalence; field in MapMakerInternalMap 202 keyEquivalence = builder.getKeyEquivalence(); in MapMakerInternalMap() 1901 int h = keyEquivalence.hash(key); in hash() 2448 if (map.keyEquivalence.equivalent(key, entryKey)) { in getEntry() 2551 && map.keyEquivalence.equivalent(key, entryKey)) { in put() 2684 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 2735 && map.keyEquivalence.equivalent(key, entryKey)) { in replace() 2780 && map.keyEquivalence.equivalent(key, entryKey)) { in remove() 2823 && map.keyEquivalence.equivalent(key, entryKey)) { in remove() 2967 && map.keyEquivalence.equivalent(key, entryKey)) { in reclaimValue() [all …]
|
D | Interners.java | 61 .keyEquivalence(Equivalences.equals())
|
D | GenericMapMaker.java | 62 abstract GenericMapMaker<K0, V0> keyEquivalence(Equivalence<Object> equivalence); in keyEquivalence() method in GenericMapMaker
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ConcurrentHashMultisetTest.java | 360 .keyEquivalence(Equivalences.identity()); in testIdentityKeyEquality() 403 .keyEquivalence(Equivalences.equals()); in testLogicalKeyEquality() 449 .keyEquivalence(Equivalences.identity()); in testSerializationWithMapMaker_preservesIdentityKeyEquivalence()
|
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() 141 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence() 272 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | LocalCacheTest.java | 126 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults() 167 makeLocalCache(createCacheBuilder().keyEquivalence(testEquivalence)); in testSetKeyEquivalence() 168 assertSame(testEquivalence, map.keyEquivalence); in testSetKeyEquivalence() 188 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence() 335 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
|