|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthenplus.util.ListMap
public final class ListMap
This provides the functionality of LinkedHashMap. However, that Collection became available at 1.4. So provide this for backward compatibility.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
ListMap()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
boolean |
equals(Object o)
|
Object |
get(Object key)
|
boolean |
isEmpty()
|
List |
keys()
Returns a List containing all keys. |
Set |
keySet()
|
ListIterator |
keysListIterator()
Returns a ListIterator over the keys. |
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection |
values()
Returns the values as a Collection , as defined in java.util.Map . |
List |
valuesList()
Returns the values as a List . |
ListIterator |
valuesListIterator()
Returns a ListIterator over the values. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
hashCode |
Constructor Detail |
---|
public ListMap()
Method Detail |
---|
public int size()
size
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Object get(Object key)
get
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public Object remove(Object key)
remove
in interface Map
public void putAll(Map t)
putAll
in interface Map
public void clear()
clear
in interface Map
public Set keySet()
keySet
in interface Map
public List keys()
List
containing all keys.
List
containing all keys.public ListIterator keysListIterator()
ListIterator
over the keys.
Use this method instead of combining the keySet
with it's iterator
method.
public Collection values()
Collection
, as defined in java.util.Map
.
values
in interface Map
public List valuesList()
List
.
public ListIterator valuesListIterator()
ListIterator
over the values.
public Set entrySet()
entrySet
in interface Map
public boolean equals(Object o)
equals
in interface Map
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |