- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 42 for maximumSize (0.06 seconds)
-
android/guava/src/com/google/common/cache/CacheBuilderSpec.java
spec.initialCapacity = value; } } /** Parse maximumSize */ private static final class MaximumSizeParser extends LongParser { @Override void parseLong(CacheBuilderSpec spec, long value) { checkArgument( spec.maximumSize == null, "maximum size was already set to %s", spec.maximumSize); checkArgument(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilderSpec.java
spec.initialCapacity = value; } } /** Parse maximumSize */ private static final class MaximumSizeParser extends LongParser { @Override void parseLong(CacheBuilderSpec spec, long value) { checkArgument( spec.maximumSize == null, "maximum size was already set to %s", spec.maximumSize); checkArgument(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* {@code maximumSize} elements. Each time a queue grows beyond this bound, it immediately * removes its greatest element (according to its comparator), which might be the element that * was just added. */ @CanIgnoreReturnValue public Builder<B> maximumSize(int maximumSize) { checkArgument(maximumSize > 0); this.maximumSize = maximumSize; return this; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration)); cache = CacheBuilder.newBuilder() .concurrencyLevel(segments) .maximumSize(maximumSize) .build( new CacheLoader<Integer, Integer>() { @Override public Integer load(Integer from) { return (int) misses.incrementAndGet();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
.addEqualityGroup(parse("initialCapacity=15"), parse("initialCapacity=15")) .addEqualityGroup(parse("maximumSize=7"), parse("maximumSize=7")) .addEqualityGroup(parse("maximumSize=15"), parse("maximumSize=15")) .addEqualityGroup(parse("maximumWeight=7"), parse("maximumWeight=7")) .addEqualityGroup(parse("maximumWeight=15"), parse("maximumWeight=15"))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 20.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
} @Override public void setUp() throws Exception { super.setUp(); this.cache = CacheBuilder.newBuilder() .expireAfterAccess(500000, MILLISECONDS) .maximumSize(count) .build(); } public void testComputeIfAbsent() { // simultaneous insertion for same key, expect 1 winner
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 6.4K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/CapacityEnforcingMap.java
private final long maximumSize; CapacityEnforcingMap( int initialCapacity, float loadFactor, boolean accessOrder, long maximumSize, StatsCounter statsCounter, @Nullable RemovalListener<? super K, ? super V> removalListener) { super(initialCapacity, loadFactor, accessOrder); this.maximumSize = maximumSize; this.statsCounter = statsCounter;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheEvictionTest.java
import java.util.List; import java.util.Set; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests relating to cache eviction: what does and doesn't count toward maximumSize, what happens * when maximumSize is reached, etc. * * @author mike nonemacher */ @NullUnmarked public class CacheEvictionTest extends TestCase { static final int MAX_SIZE = 100;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration)); cache = CacheBuilder.newBuilder() .concurrencyLevel(segments) .maximumSize(maximumSize) .build( new CacheLoader<Integer, Integer>() { @Override public Integer load(Integer from) { return (int) misses.incrementAndGet();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* {@code maximumSize} elements. Each time a queue grows beyond this bound, it immediately * removes its greatest element (according to its comparator), which might be the element that * was just added. */ @CanIgnoreReturnValue public Builder<B> maximumSize(int maximumSize) { checkArgument(maximumSize > 0); this.maximumSize = maximumSize; return this; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0)