Example usage for Java org.apache.commons.collections.map LRUMap fields, constructors, methods, implement or subclass
The text is from its open source code.
int | maxSize Maximum size |
LRUMap(int maxSize) Constructs a new, empty map with the specified maximum size. | |
LRUMap(Map map) Constructor copying elements from another map. | |
LRUMap() Constructs a new empty map with a maximum size of 100. | |
LRUMap(int maxSize, boolean scanUntilRemovable) Constructs a new, empty map with the specified maximum size. | |
LRUMap(int maxSize, float loadFactor) Constructs a new, empty map with the specified initial capacity and load factor. | |
LRUMap(Map map, boolean scanUntilRemovable) Constructor copying elements from another map. |
void | clear() Clears the map, resetting the size to zero and nullifying references to avoid garbage collection issues. |
boolean | containsKey(Object key) Checks whether the map contains the specified key. |
Object | get(Object key) Gets the value mapped to the key specified. |
Set | keySet() Gets the keySet view of the map. |
Object | put(Object key, Object value) Puts a key-value mapping into this map. |
void | putAll(Map map) Puts all the values from the specified map into this map. |
int | size() Gets the size of the map. |