| Modifier and Type | Field and Description |
|---|---|
| protected List | elements
Track the elements as they are added to the set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public V | |
| public K | |
| public V | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides java. Implements java. |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map m)Overrides java. Implements java. |
| public V | remove(Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. |
| elements | back to summary |
|---|---|
| protected List<K> elements Track the elements as they are added to the set | |
| OrderedHashMap | back to summary |
|---|---|
| public OrderedHashMap() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| getElement | back to summary |
|---|---|
| public V getElement(int i) | |
| getKey | back to summary |
|---|---|
| public K getKey(int i) | |
| put | back to summary |
|---|---|
| public V put(K key, V value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends K, ? extends V> m) Overrides java. Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling | |
| remove | back to summary |
|---|---|
| public V remove(Object key) Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. | |