Home | History | Annotate | Download | only in util

Lines Matching defs:maxSize

67     private int maxSize;
76 * @param maxSize for caches that do not override {@link #sizeOf}, this is
80 public LruCache(int maxSize) {
81 if (maxSize <= 0) {
82 throw new IllegalArgumentException("maxSize <= 0");
84 this.maxSize = maxSize;
90 * @param maxSize The new maximum size.
94 public void resize(int maxSize) {
95 if (maxSize <= 0) {
96 throw new IllegalArgumentException("maxSize <= 0");
100 this.maxSize = maxSize;
102 trimToSize(maxSize);
154 trimToSize(maxSize);
184 trimToSize(maxSize);
192 * @param maxSize the maximum size of the cache before returning. May be -1
195 public void trimToSize(int maxSize) {
205 if (size <= maxSize) {
326 public synchronized final int maxSize() {
327 return maxSize;
378 return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]",
379 maxSize, hitCount, missCount, hitPercent);