Searched defs:maxSize (Results 1 - 12 of 12) sorted by relevance

/libcore/luni/src/main/java/libcore/util/
H A DBasicLruCache.java28 private final int maxSize; field in class:BasicLruCache
30 public BasicLruCache(int maxSize) { argument
31 if (maxSize <= 0) {
32 throw new IllegalArgumentException("maxSize <= 0");
34 this.maxSize = maxSize;
68 trimToSize(maxSize);
90 trimToSize(maxSize);
94 private void trimToSize(int maxSize) { argument
95 while (map.size() > maxSize) {
[all...]
/libcore/ojluni/src/main/java/java/time/zone/
H A DIcuZoneRulesProvider.java297 ZoneRulesCache(int maxSize) { argument
298 super(maxSize);
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoubleStream.java226 * to be no longer than {@code maxSize} in length.
234 * especially for large values of {@code maxSize}, since {@code limit(n)}
245 * @param maxSize the number of elements the stream should be limited to
247 * @throws IllegalArgumentException if {@code maxSize} is negative
249 DoubleStream limit(long maxSize); argument
H A DStream.java424 * to be no longer than {@code maxSize} in length.
432 * especially for large values of {@code maxSize}, since {@code limit(n)}
443 * @param maxSize the number of elements the stream should be limited to
445 * @throws IllegalArgumentException if {@code maxSize} is negative
447 Stream<T> limit(long maxSize); argument
H A DDoublePipeline.java337 public final DoubleStream limit(long maxSize) { argument
338 if (maxSize < 0)
339 throw new IllegalArgumentException(Long.toString(maxSize));
340 return SliceOps.makeDouble(this, (long) 0, maxSize);
H A DIntPipeline.java373 public final IntStream limit(long maxSize) { argument
374 if (maxSize < 0)
375 throw new IllegalArgumentException(Long.toString(maxSize));
376 return SliceOps.makeInt(this, 0, maxSize);
H A DIntStream.java221 * to be no longer than {@code maxSize} in length.
229 * especially for large values of {@code maxSize}, since {@code limit(n)}
240 * @param maxSize the number of elements the stream should be limited to
242 * @throws IllegalArgumentException if {@code maxSize} is negative
244 IntStream limit(long maxSize); argument
H A DLongPipeline.java354 public final LongStream limit(long maxSize) { argument
355 if (maxSize < 0)
356 throw new IllegalArgumentException(Long.toString(maxSize));
357 return SliceOps.makeLong(this, 0, maxSize);
H A DLongStream.java225 * to be no longer than {@code maxSize} in length.
233 * especially for large values of {@code maxSize}, since {@code limit(n)}
244 * @param maxSize the number of elements the stream should be limited to
246 * @throws IllegalArgumentException if {@code maxSize} is negative
248 LongStream limit(long maxSize); argument
H A DReferencePipeline.java399 public final Stream<P_OUT> limit(long maxSize) { argument
400 if (maxSize < 0)
401 throw new IllegalArgumentException(Long.toString(maxSize));
402 return SliceOps.makeRef(this, 0, maxSize);
/libcore/ojluni/src/main/java/sun/security/util/
H A DCache.java253 private int maxSize; field in class:MemoryCache
260 public MemoryCache(boolean soft, int maxSize) { argument
261 this(soft, maxSize, 0);
264 public MemoryCache(boolean soft, int maxSize, int lifetime) { argument
265 this.maxSize = maxSize;
272 int buckets = (int)(maxSize / LOAD_FACTOR) + 1;
370 if (maxSize > 0 && cacheMap.size() > maxSize) {
372 if (cacheMap.size() > maxSize) { // stil
[all...]
H A DDisabledAlgorithmConstraints.java471 private int maxSize; // the maximal available key size field in class:DisabledAlgorithmConstraints.KeySizeConstraint
479 this.maxSize = Integer.MAX_VALUE;
484 this.maxSize = length;
488 this.maxSize = Integer.MAX_VALUE;
492 this.maxSize = Integer.MAX_VALUE;
496 this.maxSize = length;
500 this.maxSize = length > 1 ? (length - 1) : 0;
505 this.maxSize = -1;
555 return !((size < minSize) || (size > maxSize) ||

Completed in 865 milliseconds