|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--com.epicentric.common.OrderedHashMap
OrderedHashMap retrieves keys and values in the order that they were inserted.
HashMap, Serialized Form| Constructor Summary | |
OrderedHashMap()
Deprecated. Constructs a new, empty map with a default capacity and load factor, which is 0.75. |
|
OrderedHashMap(int initialCapacity)
Deprecated. Constructs a new, empty map with the specified initial capacity and default load factor, which is 0.75. |
|
OrderedHashMap(int initialCapacity,
float loadFactor)
Deprecated. Constructs a new, empty map with the specified initial capacity and the specified load factor. |
|
| Method Summary | |
Set |
entrySet()
Deprecated. An OrderedHashMap does not support this operation |
Set |
keySet()
Deprecated. An OrderedHashMap does not support this operation. |
List |
orderedKeys()
Deprecated. Gets all the keys, in the order they were inserted. |
Object |
put(Object key,
Object value)
Deprecated. Associates the specified value with the specified key in this map. |
Object |
remove(Object key)
Deprecated. Removes the mapping for this key from this map if present. |
Collection |
values()
Deprecated. Returns a set of values in the order that they were inserted. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, get, isEmpty, putAll, size |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Constructor Detail |
public OrderedHashMap()
public OrderedHashMap(int initialCapacity)
initialCapacity - the initial capacity of the HashMap.
public OrderedHashMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity of the HashMap.loadFactor - the load factor of the HashMap| Method Detail |
public Object put(Object key,
Object value)
put in class HashMapkey - key with which the specified value is to be associated.value - value to be associated with the specified key.public List orderedKeys()
public Collection values()
values in class HashMappublic Set keySet()
keySet in class HashMappublic Set entrySet()
entrySet in class HashMappublic Object remove(Object key)
remove in class HashMapkey - key whose mapping is to be removed from the map.
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||