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
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
| 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)
- Constructor.
- Parameters:
initialCapacity - The initial capacity.loadFactor - The load factormaximumNumberOfEntries - The maximum number of allowed entries
BoundedLinkedHashMap
public BoundedLinkedHashMap(int initialCapacity,
int maximumNumberOfEntries)
- Constructor.
- Parameters:
initialCapacity - The initial capacity.maximumNumberOfEntries - The maximum number of allowed entries
BoundedLinkedHashMap
public BoundedLinkedHashMap(int maximumNumberOfEntries)
- Constructor.
- Parameters:
maximumNumberOfEntries - The maximum number of allowed entries
getMaximumNumberOfEntries
public int getMaximumNumberOfEntries()
- Returns the maximum number of entries.
- Returns:
- the maximum number of entries
Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.