/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 223 long maximumWeight = UNSET_INT; field in CacheBuilder 404 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s", in maximumSize() 405 this.maximumWeight); in maximumSize() 437 public CacheBuilder<K, V> maximumWeight(long weight) { in maximumWeight() method in CacheBuilder 438 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s", in maximumWeight() 439 this.maximumWeight); in maximumWeight() 442 this.maximumWeight = weight; in maximumWeight() 495 return (weigher == null) ? maximumSize : maximumWeight; in getMaximumWeight() 816 checkState(maximumWeight == UNSET_INT, "maximumWeight requires weigher"); in checkWeightWithWeigher() 819 checkState(maximumWeight != UNSET_INT, "weigher requires maximumWeight"); in checkWeightWithWeigher() [all …]
|
D | CacheBuilderSpec.java | 113 @VisibleForTesting Long maximumWeight; field in CacheBuilderSpec 177 if (maximumWeight != null) { in toCacheBuilder() 178 builder.maximumWeight(maximumWeight); in toCacheBuilder() 244 maximumWeight, in hashCode() 265 && Objects.equal(maximumWeight, that.maximumWeight) in equals() 334 checkArgument(spec.maximumWeight == null, in parseLong() 335 "maximum weight was already set to ", spec.maximumWeight); in parseLong() 344 checkArgument(spec.maximumWeight == null, in parseLong() 345 "maximum weight was already set to ", spec.maximumWeight); in parseLong() 348 spec.maximumWeight = value; in parseLong()
|
D | LocalCache.java | 4631 builder.maximumWeight(maxWeight);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 41 assertNull(spec.maximumWeight); in testParse_empty() 54 assertNull(spec.maximumWeight); in testParse_initialCapacity() 98 assertEquals(9000, spec.maximumWeight.longValue()); in testParse_maximumWeight() 105 CacheBuilder.newBuilder().maximumWeight(9000), CacheBuilder.from(spec)); in testParse_maximumWeight() 130 assertNull(spec.maximumWeight); in testParse_concurrencyLevel() 153 assertNull(spec.maximumWeight); in testParse_weakKeys() 185 assertNull(spec.maximumWeight); in testParse_softValues() 208 assertNull(spec.maximumWeight); in testParse_weakValues() 261 assertNull(spec.maximumWeight); in testParse_writeExpirationDays() 310 assertNull(spec.maximumWeight); in testParse_accessExpirationDays() [all …]
|
D | CacheEvictionTest.java | 57 .maximumWeight(i) in testEviction_setMaxSegmentWeight() 83 .maximumWeight(2 * MAX_SIZE) in testEviction_maxWeightOneSegment() 118 .maximumWeight(2 * MAX_SIZE) in testEviction_maxWeight() 200 .maximumWeight(45) in testEviction_weightedLru() 243 .maximumWeight(45) in testEviction_overweight()
|
D | CacheBuilderTest.java | 170 builder.maximumWeight(16); in testMaximumSize_andWeight() 179 builder.maximumWeight(-1); in testMaximumWeight_negative() 186 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().maximumWeight(16); in testMaximumWeight_setTwice() 189 builder.maximumWeight(16); in testMaximumWeight_setTwice() 201 .maximumWeight(1); in testMaximumWeight_withoutWeigher()
|
D | LocalCacheTest.java | 323 .maximumWeight(maxSize) in checkMaximumSize() 342 makeLocalCache(createCacheBuilder().maximumWeight(1).weigher(testWeigher)); in testSetWeigher() 2399 .maximumWeight(789) in testSerializationProxyLoading() 2454 .maximumWeight(789) in testSerializationProxyManual()
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilder.java | 217 long maximumWeight = UNSET_INT; field in CacheBuilder 336 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s", in maximumSize() 337 this.maximumWeight); in maximumSize() 348 return (weigher == null) ? maximumSize : maximumWeight; in getMaximumWeight() 571 checkState(maximumWeight == UNSET_INT, "maximumWeight requires weigher"); in checkWeightWithWeigher() 574 checkState(maximumWeight != UNSET_INT, "weigher requires maximumWeight"); in checkWeightWithWeigher() 576 if (maximumWeight == UNSET_INT) { in checkWeightWithWeigher() 599 if (maximumWeight != UNSET_INT) { in toString() 600 s.add("maximumWeight", maximumWeight); in toString()
|
/external/owasp/sanitizer/lib/guava-libraries/ |
D | guava.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |
/external/owasp/sanitizer/distrib/lib/ |
D | guava.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |