Inherits java::util::HashMap.
Public Member Functions | |
OrderedHashMap () | |
OrderedHashMap (int initialCapacity) | |
OrderedHashMap (Map m) | |
void | clear () |
Object | clone () |
Set | entrySet () |
Set | keySet () |
Object | put (Object key, Object value) |
void | putAll (Map m) |
Object | remove (Object key) |
Collection | values () |
A very simple extended HashMap, which maintains order via an ArrayList.
This class provides similar, though not identical, functionality as the JDK's LinkedHashMap, but works under JDK 1.2 and JDK 1.3.
This class is not synchronized, if more than one thread accesses an instance of this class and at least one thread modifies the map, the OrderedHashMap instance must be synchronized via a call to Collections.synchronizedMap method.
The entrySet() and keySet() methods return unmodifiable sets.
The values() method returns an unmodifiable collection.
org.exolab.castor.util.OrderedHashMap.OrderedHashMap | ( | ) |
Creates a new OrderedHashMap
Referenced by org.exolab.castor.util.OrderedHashMap.clone().
org.exolab.castor.util.OrderedHashMap.OrderedHashMap | ( | int | initialCapacity | ) |
Creates a new OrderedHashMap with the given initial capacity
initialCapacity |
org.exolab.castor.util.OrderedHashMap.OrderedHashMap | ( | Map | m | ) |
Creates a new OrderedHashMap with the same entries as the given map.
m | the Map to initialize this Map with |
References org.exolab.castor.util.OrderedHashMap.putAll().
void org.exolab.castor.util.OrderedHashMap.clear | ( | ) |
Object org.exolab.castor.util.OrderedHashMap.clone | ( | ) |
Set org.exolab.castor.util.OrderedHashMap.entrySet | ( | ) |
Returns the Map.Entry set for this Map. Note that the returned Set is an unmodifiable Set
Set org.exolab.castor.util.OrderedHashMap.keySet | ( | ) |
Returns the key set for this Map. Note that the returned set is an unmodifiable Set
Referenced by org.exolab.javasource.JAnnotation.getElementNames().
Object org.exolab.castor.util.OrderedHashMap.put | ( | Object | key, | |
Object | value | |||
) |
void org.exolab.castor.util.OrderedHashMap.putAll | ( | Map | m | ) |
Object org.exolab.castor.util.OrderedHashMap.remove | ( | Object | key | ) |
Collection org.exolab.castor.util.OrderedHashMap.values | ( | ) |
Returns the set of values for this Map. Note that the returned Collection is unmodifiable.