K
- Map key.V
- Map entry.public class GridBoundedLinkedHashMap<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GridBoundedLinkedHashMap(int maxCap)
Constructs an empty insertion-ordered
GridBoundedLinkedHashMap instance
with the specified maximum capacity, and a default load factor (0.75). |
GridBoundedLinkedHashMap(int initCap,
int maxCap)
Constructs an empty insertion-ordered
GridBoundedLinkedHashMap instance
with the specified initial capacity, maximum capacity, and a default load factor (0.75). |
GridBoundedLinkedHashMap(int initCap,
int maxCap,
float loadFactor)
Constructs an empty insertion-ordered
GridBoundedLinkedHashMap instance
with the specified initial capacity, maximum capacity, and load factor. |
GridBoundedLinkedHashMap(int initCap,
int maxCap,
float loadFactor,
boolean accessOrder)
Constructs an empty
GridBoundedLinkedHashMap instance with the
specified initial capacity, maximum capacity, load factor and ordering mode. |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
clear, containsValue, get
containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public GridBoundedLinkedHashMap(int maxCap) throws IllegalArgumentException
GridBoundedLinkedHashMap
instance
with the specified maximum capacity, and a default load factor (0.75).maxCap
- Maximum map capacity.IllegalArgumentException
- If the maximum capacity is negative.public GridBoundedLinkedHashMap(int initCap, int maxCap) throws IllegalArgumentException
GridBoundedLinkedHashMap
instance
with the specified initial capacity, maximum capacity, and a default load factor (0.75).initCap
- Initial map capacity.maxCap
- Maximum map capacity.IllegalArgumentException
- If the initial capacity is negative,
or maximum capacity is smaller than initial capacity.public GridBoundedLinkedHashMap(int initCap, int maxCap, float loadFactor) throws IllegalArgumentException
GridBoundedLinkedHashMap
instance
with the specified initial capacity, maximum capacity, and load factor.initCap
- Initial map capacity.maxCap
- Maximum map capacity.loadFactor
- Load factor.IllegalArgumentException
- If the initial capacity is negative,
the load factor is non-positive, or maximum capacity is smaller
than initial capacity.public GridBoundedLinkedHashMap(int initCap, int maxCap, float loadFactor, boolean accessOrder) throws IllegalArgumentException
GridBoundedLinkedHashMap
instance with the
specified initial capacity, maximum capacity, load factor and ordering mode.initCap
- Initial map capacity.maxCap
- Maximum map capacity.loadFactor
- Load factor.accessOrder
- The ordering mode - true
for
access-order, false
for insertion-order.IllegalArgumentException
- If the initial capacity is negative,
the load factor is non-positive, or maximum capacity is smaller
than initial capacity.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017