Home | History | Annotate | Download | only in util

Lines Matching defs:maxSize

71     private int maxSize;
80 * @param maxSize for caches that do not override {@link #sizeOf}, this is
84 public LruCache(int maxSize) {
85 if (maxSize <= 0) {
86 throw new IllegalArgumentException("maxSize <= 0");
88 this.maxSize = maxSize;
94 * @param maxSize The new maximum size.
98 public void resize(int maxSize) {
99 if (maxSize <= 0) {
100 throw new IllegalArgumentException("maxSize <= 0");
104 this.maxSize = maxSize;
106 trimToSize(maxSize);
158 trimToSize(maxSize);
188 trimToSize(maxSize);
193 * @param maxSize the maximum size of the cache before returning. May be -1
196 private void trimToSize(int maxSize) {
206 if (size <= maxSize) {
336 public synchronized final int maxSize() {
337 return maxSize;
388 return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]",
389 maxSize, hitCount, missCount, hitPercent);