com.fasterxml.jackson.databind.util
Class LRUMap<K,V>
java.lang.Object
   java.util.AbstractMap<K,V>
java.util.AbstractMap<K,V>
       java.util.HashMap<K,V>
java.util.HashMap<K,V>
           java.util.LinkedHashMap<K,V>
java.util.LinkedHashMap<K,V>
               com.fasterxml.jackson.databind.util.LRUMap<K,V>
com.fasterxml.jackson.databind.util.LRUMap<K,V>
- All Implemented Interfaces: 
- Serializable, Cloneable, Map<K,V>
- public class LRUMap<K,V> 
- extends LinkedHashMap<K,V>
Helper for simple bounded LRU maps used for reusing lookup values.
- See Also:
- Serialized Form
 
 
 
| Constructor Summary | 
| LRUMap(int initialEntries,
       int maxEntries)
 | 
 
 
 
 
 
 
| Methods inherited from interface java.util.Map | 
| containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values | 
 
_maxEntries
protected final int _maxEntries
LRUMap
public LRUMap(int initialEntries,
              int maxEntries)
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
- 
- Overrides:
- removeEldestEntryin class- LinkedHashMap<K,V>
 
- 
 
Copyright © 2012 fasterxml.com. All Rights Reserved.