/libcore/luni/src/main/java/libcore/util/ |
H A D | BasicLruCache.java | 28 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 D | IcuZoneRulesProvider.java | 297 ZoneRulesCache(int maxSize) { argument 298 super(maxSize);
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | DoubleStream.java | 226 * 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 D | Stream.java | 424 * 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 D | DoublePipeline.java | 337 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 D | IntPipeline.java | 373 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 D | IntStream.java | 221 * 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 D | LongPipeline.java | 354 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 D | LongStream.java | 225 * 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 D | ReferencePipeline.java | 399 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 D | Cache.java | 253 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 D | DisabledAlgorithmConstraints.java | 471 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) ||
|