Home | History | Annotate | Download | only in util

Lines Matching full: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;
91 * @param maxSize The new maximum size.
93 public void resize(int maxSize) {
94 if (maxSize <= 0) {
95 throw new IllegalArgumentException("maxSize <= 0");
99 this.maxSize = maxSize;
101 trimToSize(maxSize);
153 trimToSize(maxSize);
183 trimToSize(maxSize);
191 * @param maxSize the maximum size of the cache before returning. May be -1
194 public void trimToSize(int maxSize) {
204 if (size <= maxSize) {
325 public synchronized final int maxSize() {
326 return maxSize;
377 return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]",
378 maxSize, hitCount, missCount, hitPercent);