Home
last modified time | relevance | path

Searched refs:valueStrength (Results 1 – 18 of 18) sorted by relevance

/external/guava/android/guava/src/com/google/common/collect/
DMapMaker.java102 @NullableDecl Strength valueStrength; field in MapMaker
255 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
256 valueStrength = checkNotNull(strength); in setValueStrength()
265 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
302 if (valueStrength != null) { in toString()
303 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString())); in toString()
DMapMakerInternalMap.java286 Strength valueStrength(); in valueStrength() method
432 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.StrongKeyStrongValueEntry.Helper
529 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.StrongKeyWeakValueEntry.Helper
609 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.StrongKeyDummyValueEntry.Helper
714 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.WeakKeyDummyValueEntry.Helper
802 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.WeakKeyStrongValueEntry.Helper
904 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.WeakKeyWeakValueEntry.Helper
2286 Strength valueStrength() { in valueStrength() method in MapMakerInternalMap
2287 return entryHelper.valueStrength(); in valueStrength()
2292 return entryHelper.valueStrength().defaultEquivalence(); in valueEquivalence()
[all …]
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java102 @Nullable Strength valueStrength; field in MapMaker
255 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
256 valueStrength = checkNotNull(strength); in setValueStrength()
265 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
302 if (valueStrength != null) { in toString()
303 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString())); in toString()
DMapMakerInternalMap.java286 Strength valueStrength(); in valueStrength() method
431 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.StrongKeyStrongValueEntry.Helper
528 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.StrongKeyWeakValueEntry.Helper
608 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.StrongKeyDummyValueEntry.Helper
713 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.WeakKeyDummyValueEntry.Helper
797 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.WeakKeyStrongValueEntry.Helper
899 public Strength valueStrength() { in valueStrength() method in MapMakerInternalMap.WeakKeyWeakValueEntry.Helper
2281 Strength valueStrength() { in valueStrength() method in MapMakerInternalMap
2282 return entryHelper.valueStrength(); in valueStrength()
2287 return entryHelper.valueStrength().defaultEquivalence(); in valueEquivalence()
[all …]
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java42 assertNull(spec.valueStrength); in testParse_empty()
55 assertNull(spec.valueStrength); in testParse_initialCapacity()
76 assertNull(spec.valueStrength); in testParse_maximumSize()
97 assertNull(spec.valueStrength); in testParse_maximumWeight()
127 assertNull(spec.valueStrength); in testParse_concurrencyLevel()
149 assertNull(spec.valueStrength); in testParse_weakKeys()
178 assertEquals(Strength.SOFT, spec.valueStrength); in testParse_softValues()
199 assertEquals(Strength.WEAK, spec.valueStrength); in testParse_weakValues()
246 assertNull(spec.valueStrength); in testParse_writeExpirationDays()
293 assertNull(spec.valueStrength); in testParse_accessExpirationDays()
[all …]
DCacheBuilderFactory.java168 Strength valueStrength) {
192 if (valueStrength != null) {
193 builder.setValueStrength(valueStrength);
DLocalCacheTest.java263 assertSame(Strength.STRONG, map.valueStrength); in testDefaults()
265 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testDefaults()
308 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testSetKeyEquivalence()
486 LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
488 assertSame(valueStrength, map.valueStrength); in checkStrength()
490 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence); in checkStrength()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java42 assertNull(spec.valueStrength); in testParse_empty()
55 assertNull(spec.valueStrength); in testParse_initialCapacity()
76 assertNull(spec.valueStrength); in testParse_maximumSize()
97 assertNull(spec.valueStrength); in testParse_maximumWeight()
127 assertNull(spec.valueStrength); in testParse_concurrencyLevel()
149 assertNull(spec.valueStrength); in testParse_weakKeys()
178 assertEquals(Strength.SOFT, spec.valueStrength); in testParse_softValues()
199 assertEquals(Strength.WEAK, spec.valueStrength); in testParse_weakValues()
246 assertNull(spec.valueStrength); in testParse_writeExpirationDays()
293 assertNull(spec.valueStrength); in testParse_accessExpirationDays()
[all …]
DCacheBuilderFactory.java168 Strength valueStrength) {
192 if (valueStrength != null) {
193 builder.setValueStrength(valueStrength);
DLocalCacheTest.java260 assertSame(Strength.STRONG, map.valueStrength); in testDefaults()
262 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testDefaults()
305 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testSetKeyEquivalence()
483 LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
485 assertSame(valueStrength, map.valueStrength); in checkStrength()
487 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence); in checkStrength()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilderSpec.java115 @VisibleForTesting @Nullable Strength valueStrength; field in CacheBuilderSpec
189 if (valueStrength != null) { in toCacheBuilder()
190 switch (valueStrength) { in toCacheBuilder()
243 valueStrength, in hashCode()
264 && Objects.equal(valueStrength, that.valueStrength) in equals()
391 spec.valueStrength == null, "%s was already set to %s", key, spec.valueStrength); in parse()
393 spec.valueStrength = strength; in parse()
DCacheBuilder.java236 @Nullable Strength valueStrength; field in CacheBuilder
624 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
625 valueStrength = checkNotNull(strength); in setValueStrength()
630 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
1019 if (valueStrength != null) { in toString()
1020 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString())); in toString()
DLocalCache.java193 final Strength valueStrength; field in LocalCache
243 valueStrength = builder.getValueStrength(); in LocalCache()
372 return valueStrength != Strength.STRONG; in usesValueReferences()
1693 return valueStrength.referenceValue(segmentFor(hash), entry, checkNotNull(value), weight); in newValueReference()
2014 map.valueStrength.referenceValue(this, entry, value, weight); in setValue()
4668 final Strength valueStrength;
4685 cache.valueStrength,
4700 Strength valueStrength,
4712 this.valueStrength = valueStrength;
4729 .setValueStrength(valueStrength)
/external/guava/android/guava/src/com/google/common/cache/
DCacheBuilderSpec.java115 @VisibleForTesting @NullableDecl Strength valueStrength; field in CacheBuilderSpec
189 if (valueStrength != null) { in toCacheBuilder()
190 switch (valueStrength) { in toCacheBuilder()
243 valueStrength, in hashCode()
264 && Objects.equal(valueStrength, that.valueStrength) in equals()
392 spec.valueStrength == null, "%s was already set to %s", key, spec.valueStrength); in parse()
394 spec.valueStrength = strength; in parse()
DCacheBuilder.java237 @NullableDecl Strength valueStrength; field in CacheBuilder
625 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
626 valueStrength = checkNotNull(strength); in setValueStrength()
631 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
919 if (valueStrength != null) { in toString()
920 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString())); in toString()
DLocalCache.java189 final Strength valueStrength; field in LocalCache
239 valueStrength = builder.getValueStrength(); in LocalCache()
368 return valueStrength != Strength.STRONG; in usesValueReferences()
1691 return valueStrength.referenceValue(segmentFor(hash), entry, checkNotNull(value), weight); in newValueReference()
2012 map.valueStrength.referenceValue(this, entry, value, weight); in setValue()
4507 final Strength valueStrength;
4524 cache.valueStrength,
4539 Strength valueStrength,
4551 this.valueStrength = valueStrength;
4568 .setValueStrength(valueStrength)
/external/guava/android/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java57 assertSame(Strength.STRONG, map.valueStrength()); in testDefaults()
59 assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence()); in testDefaults()
89 assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence()); in testSetKeyEquivalence()
206 MapMakerInternalMap<Object, Object, ?, ?> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
208 assertSame(valueStrength, map.valueStrength()); in checkStrength()
210 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence()); in checkStrength()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java57 assertSame(Strength.STRONG, map.valueStrength()); in testDefaults()
59 assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence()); in testDefaults()
89 assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence()); in testSetKeyEquivalence()
206 MapMakerInternalMap<Object, Object, ?, ?> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
208 assertSame(valueStrength, map.valueStrength()); in checkStrength()
210 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence()); in checkStrength()