GemFire 5.5.1

com.gemstone.gemfire.cache.util
Class BoundedLinkedHashMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
BoundedLinkedHashMap(int maximumNumberOfEntries)
          Constructor.
BoundedLinkedHashMap(int initialCapacity, float loadFactor, int maximumNumberOfEntries)
          Constructor.
BoundedLinkedHashMap(int initialCapacity, int maximumNumberOfEntries)
          Constructor.
 
Method Summary
 int getMaximumNumberOfEntries()
          Returns the maximum number of entries.
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

BoundedLinkedHashMap

public BoundedLinkedHashMap(int initialCapacity,
                            float loadFactor,
                            int maximumNumberOfEntries)
Constructor.

Parameters:
initialCapacity - The initial capacity.
loadFactor - The load factor
maximumNumberOfEntries - 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
Method Detail

getMaximumNumberOfEntries

public int getMaximumNumberOfEntries()
Returns the maximum number of entries.

Returns:
the maximum number of entries

GemFire 5.5.1

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.