public class LinkedMap
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
LinkedMap()
Default constructor.
|
LinkedMap(int initialCapacity,
float loadFactor)
Creates a new map with the given initial number of buckets and the given loadfactor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the map and removes all map records.
|
java.lang.Object |
clone()
Clones this map.
|
boolean |
containsKey(java.lang.Object key)
Checks, whether the map contains an entry for the key.
|
java.lang.Object |
get(java.lang.Object key)
Retrieves the object stored under the given key from the map.
|
boolean |
isEmpty()
Checks whether this collection is empty.
|
java.lang.Object[] |
keys()
Returns the keys used in this map as array.
|
java.lang.Object[] |
keys(java.lang.Object[] data)
Returns the keys used in this map as array.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Stores the given value in the map using the provided key.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the object stored under the given key from the map.
|
int |
size()
Returns the number of entries in the map.
|
java.lang.Object[] |
values()
Returns the values used in this map as array.
|
java.lang.Object[] |
values(java.lang.Object[] data)
Returns the values used in this map as array.
|
public LinkedMap()
public LinkedMap(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacity.loadFactor
- the load factor of the bucket-array.public int size()
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
key
- the key.value
- the value to be stored under the key.public java.lang.Object get(java.lang.Object key)
key
- the key for which a value should be located.public java.lang.Object remove(java.lang.Object key)
key
- the key for which a value should be located.public boolean containsKey(java.lang.Object key)
key
- the key for which a value should be located.public java.lang.Object[] keys(java.lang.Object[] data)
data
- the object array that should receive the keys.public java.lang.Object[] keys()
public java.lang.Object[] values()
public java.lang.Object[] values(java.lang.Object[] data)
data
- the object array that should receive the values.public void clear()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean isEmpty()