Java org.apache.commons.collections.map LRUMap fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections.map LRUMap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.collections.map LRUMap.

The text is from its open source code.

Subclass

org.apache.commons.collections.map.LRUMap has subclasses.
Click this link to see all its subclasses.

Field

intmaxSize
Maximum size

Constructor

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.

Method

voidclear()
Clears the map, resetting the size to zero and nullifying references to avoid garbage collection issues.
booleancontainsKey(Object key)
Checks whether the map contains the specified key.
Objectget(Object key)
Gets the value mapped to the key specified.
SetkeySet()
Gets the keySet view of the map.
Objectput(Object key, Object value)
Puts a key-value mapping into this map.
voidputAll(Map map)
Puts all the values from the specified map into this map.
intsize()
Gets the size of the map.