org.pentaho.reporting.libraries.base.util
public class LinkedMap extends Object implements Cloneable, Serializable
UNKNOWN: ProtectedField
Nested Class Summary | |
---|---|
protected static class | LinkedMap.MapEntry
A cache map entry class holding both the key and value and acting as member of a linked list. |
Constructor Summary | |
---|---|
LinkedMap()
Default constructor. | |
LinkedMap(int initialCapacity, float loadFactor)
Creates a new map with the given initial number of buckets and the given loadfactor. |
Method Summary | |
---|---|
void | clear()
Clears the map and removes all map records. |
Object | clone()
Clones this map.
|
boolean | containsKey(Object key)
Checks, whether the map contains an entry for the key.
|
Object | get(Object key)
Retrieves the object stored under the given key from the map.
|
boolean | isEmpty()
Checks whether this collection is empty.
|
Object[] | keys(Object[] data)
Returns the keys used in this map as array. |
Object[] | keys()
Returns the keys used in this map as array. |
Object | put(Object key, Object value)
Stores the given value in the map using the provided key. |
Object | remove(Object key)
Removes the object stored under the given key from the map.
|
int | size()
Returns the number of entries in the map.
|
Object[] | values()
Returns the values used in this map as array. |
Object[] | values(Object[] data)
Returns the values used in this map as array. |
Parameters: initialCapacity the initial capacity. loadFactor the load factor of the bucket-array.
Returns: the cloned map.
Throws: CloneNotSupportedException
Parameters: key the key for which a value should be located.
Returns: true if the map contains a value for the key, false otherwise.
Parameters: key the key for which a value should be located.
Returns: the value or null, if the map did not contain a value for the key.
Returns: true, if the collection is empty, false otherwise.
Parameters: data the object array that should receive the keys.
Returns: the array filled with the keys.
Returns: the array filled with the keys.
Parameters: key the key. value the value to be stored under the key.
Returns: the previous value stored under this key or null of the entry is new.
Parameters: key the key for which a value should be located.
Returns: the value or null, if the map did not contain a value for the key.
Returns: the number of entries.
Returns: the array filled with the values.
Parameters: data the object array that should receive the values.
Returns: the array filled with the values.