com.fasterxml.jackson.databind.util.LRUMap.java Source code

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.util.LRUMap.java

Source

package com.fasterxml.jackson.databind.util;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map.Entry;

public class LRUMap<K, V> extends LinkedHashMap<K, V> implements Serializable {
    protected final int _maxEntries;

    public LRUMap(int paramInt1, int paramInt2) {
        super(paramInt1, 0.8F, true);
        this._maxEntries = paramInt2;
    }

    protected boolean removeEldestEntry(Map.Entry<K, V> paramEntry) {
        return size() > this._maxEntries;
    }
}

/* Location:           /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar
 * Qualified Name:     com.fasterxml.jackson.databind.util.LRUMap
 * JD-Core Version:    0.6.2
 */