public class OrderedMap<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
Constructor and Description |
---|
OrderedMap()
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all entries from this map.
|
boolean |
containsKey(java.lang.Object key)
This method returns true, if the given key can be found in this map.
|
boolean |
containsValue(java.lang.Object value)
This method returns true, if the given value is a value of any entry
in this map.
|
protected AssociationList<K,V> |
createEmptyMapping() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
Returns all entries of the map
|
V |
get(java.lang.Object key) |
protected AssociationList<K,V> |
getMapping() |
boolean |
isEmpty()
Returns true, if there is no entry in this map.
|
java.util.Set<K> |
keySet()
Returns all keys in this map.
|
V |
put(K key,
V value)
Puts the given value under the specified key into the map.
|
void |
putAll(java.util.Map<? extends K,? extends V> map)
Each entry of the given map will be added.
|
V |
remove(java.lang.Object key)
Removes the entry with the specified key.
|
protected void |
setMapping(AssociationList<K,V> newValue) |
int |
size()
Returns how many entries currently are in this map.
|
java.util.Collection<V> |
values()
Returns all values of the map.
|
public void clear()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public boolean isEmpty()
public java.util.Set<K> keySet()
public void putAll(java.util.Map<? extends K,? extends V> map)
public V remove(java.lang.Object key)
public int size()
public java.util.Collection<V> values()
protected AssociationList<K,V> createEmptyMapping()
protected AssociationList<K,V> getMapping()
protected void setMapping(AssociationList<K,V> newValue)