public class OrderedMap
extends java.lang.Object
implements java.util.Map
Constructor and Description |
---|
OrderedMap()
Creates an OrderedMap.
|
OrderedMap(java.util.List keyList,
java.util.Map map)
Creates an OrderedMap backed by the given map.
|
OrderedMap(java.util.Map map) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.List |
keyList()
Returns the keys, in order.
|
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map t) |
java.lang.Object |
remove(java.lang.Object key) |
int |
size() |
java.util.List |
valueList()
Returns the values.
|
java.util.Collection |
values()
Returns the values.
|
public OrderedMap(java.util.List keyList, java.util.Map map)
map
- a Map that will be this OrderedMap's underlying Mappublic OrderedMap()
public OrderedMap(java.util.Map map)
public int size()
size
in interface java.util.Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
public void putAll(java.util.Map t)
putAll
in interface java.util.Map
public void clear()
clear
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.util.List keyList()
public java.util.List valueList()
keyList()
public java.util.Collection values()
values
in interface java.util.Map
keyList()
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.lang.Object