com.gemstone.gemfire.cache.util
Class BoundedLinkedHashMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap
com.gemstone.gemfire.cache.util.BoundedLinkedHashMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map
Deprecated. as of 5.7 create your own class that extends LinkedHashMap
and implement LinkedHashMap.removeEldestEntry(java.util.Map.Entry)
to enforce a maximum number of entries.
@Deprecated
public class BoundedLinkedHashMap
- extends LinkedHashMap
Class BoundedLinkedHashMap
is a bounded
LinkedHashMap
. The bound is the maximum
number of entries the BoundedLinkedHashMap
can contain.
- Since:
- 4.2
- See Also:
- Serialized Form
Constructor Summary |
BoundedLinkedHashMap(int maximumNumberOfEntries)
Deprecated. Constructor. |
BoundedLinkedHashMap(int initialCapacity,
float loadFactor,
int maximumNumberOfEntries)
Deprecated. Constructor. |
BoundedLinkedHashMap(int initialCapacity,
int maximumNumberOfEntries)
Deprecated. Constructor. |
Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
BoundedLinkedHashMap
public BoundedLinkedHashMap(int initialCapacity,
float loadFactor,
int maximumNumberOfEntries)
- Deprecated.
- Constructor.
- Parameters:
initialCapacity
- The initial capacity.loadFactor
- The load factormaximumNumberOfEntries
- The maximum number of allowed entries
BoundedLinkedHashMap
public BoundedLinkedHashMap(int initialCapacity,
int maximumNumberOfEntries)
- Deprecated.
- Constructor.
- Parameters:
initialCapacity
- The initial capacity.maximumNumberOfEntries
- The maximum number of allowed entries
BoundedLinkedHashMap
public BoundedLinkedHashMap(int maximumNumberOfEntries)
- Deprecated.
- Constructor.
- Parameters:
maximumNumberOfEntries
- The maximum number of allowed entries
getMaximumNumberOfEntries
public int getMaximumNumberOfEntries()
- Deprecated.
- Returns the maximum number of entries.
- Returns:
- the maximum number of entries
Copyright © 1997-2012 VMware, Inc. All rights reserved.