Home
last modified time | relevance | path

Searched refs:keyStrength (Results 1 – 22 of 22) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DMapMaker.java102 @CheckForNull Strength keyStrength; field in MapMaker
210 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength); in setKeyStrength()
211 keyStrength = checkNotNull(strength); in setKeyStrength()
220 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); in getKeyStrength()
300 if (keyStrength != null) { in toString()
301 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString())); in toString()
DMapMakerInternalMap.java287 Strength keyStrength(); in keyStrength() method
430 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.StrongKeyStrongValueEntry.Helper
527 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.StrongKeyWeakValueEntry.Helper
607 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.StrongKeyDummyValueEntry.Helper
712 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.WeakKeyDummyValueEntry.Helper
796 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.WeakKeyStrongValueEntry.Helper
898 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.WeakKeyWeakValueEntry.Helper
2280 Strength keyStrength() { in keyStrength() method in MapMakerInternalMap
2281 return entryHelper.keyStrength(); in keyStrength()
2835 entryHelper.keyStrength(), in writeReplace()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DMapMaker.java102 @CheckForNull Strength keyStrength; field in MapMaker
210 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength); in setKeyStrength()
211 keyStrength = checkNotNull(strength); in setKeyStrength()
220 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); in getKeyStrength()
300 if (keyStrength != null) { in toString()
301 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString())); in toString()
DMapMakerInternalMap.java287 Strength keyStrength(); in keyStrength() method
431 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.StrongKeyStrongValueEntry.Helper
528 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.StrongKeyWeakValueEntry.Helper
608 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.StrongKeyDummyValueEntry.Helper
713 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.WeakKeyDummyValueEntry.Helper
801 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.WeakKeyStrongValueEntry.Helper
903 public Strength keyStrength() { in keyStrength() method in MapMakerInternalMap.WeakKeyWeakValueEntry.Helper
2285 Strength keyStrength() { in keyStrength() method in MapMakerInternalMap
2286 return entryHelper.keyStrength(); in keyStrength()
2840 entryHelper.keyStrength(), in writeReplace()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java41 assertNull(spec.keyStrength); in testParse_empty()
54 assertNull(spec.keyStrength); in testParse_initialCapacity()
75 assertNull(spec.keyStrength); in testParse_maximumSize()
96 assertNull(spec.keyStrength); in testParse_maximumWeight()
126 assertNull(spec.keyStrength); in testParse_concurrencyLevel()
148 assertEquals(Strength.WEAK, spec.keyStrength); in testParse_weakKeys()
177 assertNull(spec.keyStrength); in testParse_softValues()
198 assertNull(spec.keyStrength); in testParse_weakValues()
245 assertNull(spec.keyStrength); in testParse_writeExpirationDays()
292 assertNull(spec.keyStrength); in testParse_accessExpirationDays()
[all …]
DCacheBuilderFactory.java167 Strength keyStrength,
189 if (keyStrength != null) {
190 builder.setKeyStrength(keyStrength);
DLocalCacheTest.java260 assertSame(Strength.STRONG, map.keyStrength); in testDefaults()
262 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults()
326 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence()
484 LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
485 assertSame(keyStrength, map.keyStrength); in checkStrength()
487 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
2609 assertEquals(localCacheOne.keyStrength, localCacheTwo.keyStrength); in testSerializationProxyLoading()
2610 assertEquals(localCacheOne.keyStrength, localCacheTwo.keyStrength); in testSerializationProxyLoading()
2626 assertEquals(localCacheTwo.keyStrength, localCacheThree.keyStrength); in testSerializationProxyLoading()
2627 assertEquals(localCacheTwo.keyStrength, localCacheThree.keyStrength); in testSerializationProxyLoading()
[all …]
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java41 assertNull(spec.keyStrength); in testParse_empty()
54 assertNull(spec.keyStrength); in testParse_initialCapacity()
75 assertNull(spec.keyStrength); in testParse_maximumSize()
96 assertNull(spec.keyStrength); in testParse_maximumWeight()
126 assertNull(spec.keyStrength); in testParse_concurrencyLevel()
148 assertEquals(Strength.WEAK, spec.keyStrength); in testParse_weakKeys()
177 assertNull(spec.keyStrength); in testParse_softValues()
198 assertNull(spec.keyStrength); in testParse_weakValues()
245 assertNull(spec.keyStrength); in testParse_writeExpirationDays()
292 assertNull(spec.keyStrength); in testParse_accessExpirationDays()
[all …]
DCacheBuilderFactory.java167 Strength keyStrength,
189 if (keyStrength != null) {
190 builder.setKeyStrength(keyStrength);
DLocalCacheTest.java263 assertSame(Strength.STRONG, map.keyStrength); in testDefaults()
265 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testDefaults()
329 assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence); in testSetValueEquivalence()
487 LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
488 assertSame(keyStrength, map.keyStrength); in checkStrength()
490 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
2560 assertEquals(localCacheOne.keyStrength, localCacheTwo.keyStrength); in testSerializationProxyLoading()
2561 assertEquals(localCacheOne.keyStrength, localCacheTwo.keyStrength); in testSerializationProxyLoading()
2577 assertEquals(localCacheTwo.keyStrength, localCacheThree.keyStrength); in testSerializationProxyLoading()
2578 assertEquals(localCacheTwo.keyStrength, localCacheThree.keyStrength); in testSerializationProxyLoading()
[all …]
/external/guava/android/guava/src/com/google/common/cache/
DCacheBuilderSpec.java117 @VisibleForTesting @CheckForNull Strength keyStrength; field in CacheBuilderSpec
183 if (keyStrength != null) { in toCacheBuilder()
184 switch (keyStrength) { in toCacheBuilder()
245 keyStrength, in hashCode()
266 && Objects.equal(keyStrength, that.keyStrength) in equals()
382 checkArgument(spec.keyStrength == null, "%s was already set to %s", key, spec.keyStrength); in parse()
383 spec.keyStrength = strength; in parse()
DCacheBuilder.java278 @Nullable Strength keyStrength; field in CacheBuilder
613 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength); in setKeyStrength()
614 keyStrength = checkNotNull(strength); in setKeyStrength()
619 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); in getKeyStrength()
964 if (keyStrength != null) { in toString()
965 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString())); in toString()
DLocalCache.java192 final Strength keyStrength; field in LocalCache
244 keyStrength = builder.getKeyStrength(); in LocalCache()
263 entryFactory = EntryFactory.getFactory(keyStrength, usesAccessEntries(), usesWriteEntries()); in LocalCache()
370 return keyStrength != Strength.STRONG; in usesKeyReferences()
568 Strength keyStrength, boolean usesAccessQueue, boolean usesWriteQueue) { in getFactory() argument
570 ((keyStrength == Strength.WEAK) ? WEAK_MASK : 0) in getFactory()
4511 final Strength keyStrength;
4528 cache.keyStrength,
4543 Strength keyStrength,
4555 this.keyStrength = keyStrength;
[all …]
/external/guava/guava/src/com/google/common/cache/
DCacheBuilderSpec.java117 @VisibleForTesting @CheckForNull Strength keyStrength; field in CacheBuilderSpec
183 if (keyStrength != null) { in toCacheBuilder()
184 switch (keyStrength) { in toCacheBuilder()
245 keyStrength, in hashCode()
266 && Objects.equal(keyStrength, that.keyStrength) in equals()
382 checkArgument(spec.keyStrength == null, "%s was already set to %s", key, spec.keyStrength); in parse()
383 spec.keyStrength = strength; in parse()
DCacheBuilder.java277 @Nullable Strength keyStrength; field in CacheBuilder
612 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength); in setKeyStrength()
613 keyStrength = checkNotNull(strength); in setKeyStrength()
618 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); in getKeyStrength()
1065 if (keyStrength != null) { in toString()
1066 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString())); in toString()
DLocalCache.java194 final Strength keyStrength; field in LocalCache
246 keyStrength = builder.getKeyStrength(); in LocalCache()
265 entryFactory = EntryFactory.getFactory(keyStrength, usesAccessEntries(), usesWriteEntries()); in LocalCache()
372 return keyStrength != Strength.STRONG; in usesKeyReferences()
570 Strength keyStrength, boolean usesAccessQueue, boolean usesWriteQueue) { in getFactory() argument
572 ((keyStrength == Strength.WEAK) ? WEAK_MASK : 0) in getFactory()
4682 final Strength keyStrength;
4699 cache.keyStrength,
4714 Strength keyStrength,
4726 this.keyStrength = keyStrength;
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DInternersTest.java57 assertEquals(Strength.STRONG, internerImpl.map.keyStrength()); in testStrong_builder()
83 assertEquals(Strength.WEAK, internerImpl.map.keyStrength()); in testWeak_builder()
DConcurrentHashMultisetTest.java335 private void testIdentityKeyEquality(MapMakerInternalMap.Strength keyStrength) {
338 new MapMaker().setKeyStrength(keyStrength).keyEquivalence(Equivalence.identity()).makeMap();
371 private void testLogicalKeyEquality(MapMakerInternalMap.Strength keyStrength) {
374 new MapMaker().setKeyStrength(keyStrength).keyEquivalence(Equivalence.equals()).makeMap();
DMapMakerInternalMapTest.java56 assertSame(Strength.STRONG, map.keyStrength()); in testDefaults()
58 assertSame(map.keyStrength().defaultEquivalence(), map.keyEquivalence); in testDefaults()
206 MapMakerInternalMap<Object, Object, ?, ?> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
207 assertSame(keyStrength, map.keyStrength()); in checkStrength()
209 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()
/external/guava/android/guava-tests/test/com/google/common/collect/
DInternersTest.java57 assertEquals(Strength.STRONG, internerImpl.map.keyStrength()); in testStrong_builder()
83 assertEquals(Strength.WEAK, internerImpl.map.keyStrength()); in testWeak_builder()
DConcurrentHashMultisetTest.java335 private void testIdentityKeyEquality(MapMakerInternalMap.Strength keyStrength) {
338 new MapMaker().setKeyStrength(keyStrength).keyEquivalence(Equivalence.identity()).makeMap();
371 private void testLogicalKeyEquality(MapMakerInternalMap.Strength keyStrength) {
374 new MapMaker().setKeyStrength(keyStrength).keyEquivalence(Equivalence.equals()).makeMap();
DMapMakerInternalMapTest.java56 assertSame(Strength.STRONG, map.keyStrength()); in testDefaults()
58 assertSame(map.keyStrength().defaultEquivalence(), map.keyEquivalence); in testDefaults()
206 MapMakerInternalMap<Object, Object, ?, ?> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
207 assertSame(keyStrength, map.keyStrength()); in checkStrength()
209 assertSame(keyStrength.defaultEquivalence(), map.keyEquivalence); in checkStrength()