Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java44 assertNull(spec.valueStrength); in testParse_empty()
57 assertNull(spec.valueStrength); in testParse_initialCapacity()
79 assertNull(spec.valueStrength); in testParse_maximumSize()
101 assertNull(spec.valueStrength); in testParse_maximumWeight()
133 assertNull(spec.valueStrength); in testParse_concurrencyLevel()
156 assertNull(spec.valueStrength); in testParse_weakKeys()
188 assertEquals(Strength.SOFT, spec.valueStrength); in testParse_softValues()
211 assertEquals(Strength.WEAK, spec.valueStrength); in testParse_weakValues()
264 assertNull(spec.valueStrength); in testParse_writeExpirationDays()
313 assertNull(spec.valueStrength); in testParse_accessExpirationDays()
[all …]
DCacheBuilderFactory.java153 Strength keyStrength, Strength valueStrength) {
177 if (valueStrength != null) {
178 builder.setValueStrength(valueStrength);
DLocalCacheTest.java155 assertSame(Strength.STRONG, map.valueStrength); in testDefaults()
157 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testDefaults()
199 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testSetKeyEquivalence()
366 LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
368 assertSame(valueStrength, map.valueStrength); in checkStrength()
370 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence); in checkStrength()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilderSpec.java117 @VisibleForTesting Strength valueStrength; field in CacheBuilderSpec
193 if (valueStrength != null) { in toCacheBuilder()
194 switch (valueStrength) { in toCacheBuilder()
248 valueStrength, in hashCode()
269 && Objects.equal(valueStrength, that.valueStrength) in equals()
390 checkArgument(spec.valueStrength == null, in parse()
391 "%s was already set to %s", key, spec.valueStrength); in parse()
393 spec.valueStrength = strength; in parse()
DCacheBuilder.java226 Strength valueStrength; field in CacheBuilder
577 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
578 valueStrength = checkNotNull(strength); in setValueStrength()
583 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
856 if (valueStrength != null) { in toString()
857 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString())); in toString()
DLocalCache.java187 final Strength valueStrength; field in LocalCache
240 valueStrength = builder.getValueStrength(); in LocalCache()
369 return valueStrength != Strength.STRONG; in usesValueReferences()
1835 return valueStrength.referenceValue(segmentFor(hash), entry, checkNotNull(value), weight); in newValueReference()
2166 map.valueStrength.referenceValue(this, entry, value, weight); in setValue()
4564 final Strength valueStrength;
4581 cache.valueStrength,
4595 Strength keyStrength, Strength valueStrength,
4602 this.valueStrength = valueStrength;
4619 .setValueStrength(valueStrength)
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java220 Strength valueStrength; field in CacheBuilder
367 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
368 valueStrength = checkNotNull(strength); in setValueStrength()
373 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
611 if (valueStrength != null) { in toString()
612 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString())); in toString()
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java121 Strength valueStrength; field in MapMaker
339 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
340 valueStrength = checkNotNull(strength); in setValueStrength()
349 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG); in getValueStrength()
615 if (valueStrength != null) { in toString()
616 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString())); in toString()
DComputingConcurrentHashMap.java382 return new ComputingSerializationProxy<K, V>(keyStrength, valueStrength, keyEquivalence, in writeReplace()
391 ComputingSerializationProxy(Strength keyStrength, Strength valueStrength, in ComputingSerializationProxy() argument
396 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
DMapMakerInternalMap.java165 final Strength valueStrength; field in MapMakerInternalMap
199 valueStrength = builder.getValueStrength(); in MapMakerInternalMap()
202 valueEquivalence = valueStrength.defaultEquivalence(); in MapMakerInternalMap()
286 return valueStrength != Strength.STRONG; in usesValueReferences()
1847 return valueStrength.referenceValue(segmentFor(hash), entry, value); in newValueReference()
2160 ValueReference<K, V> valueReference = map.valueStrength.referenceValue(this, entry, value); in setValue()
3887 return new SerializationProxy<K, V>(keyStrength, valueStrength, keyEquivalence,
3901 final Strength valueStrength;
3912 AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
3918 this.valueStrength = valueStrength;
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java80 assertSame(Strength.STRONG, map.valueStrength); in testDefaults()
82 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testDefaults()
122 assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence); in testSetKeyEquivalence()
243 MapMakerInternalMap<Object, Object> map, Strength keyStrength, Strength valueStrength) { in checkStrength() argument
245 assertSame(valueStrength, map.valueStrength); in checkStrength()
247 assertSame(valueStrength.defaultEquivalence(), map.valueEquivalence); in checkStrength()