|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrderedMap
An extension to ConcurrentMap providing a key and entry sets
and a value collection, as well as key, entry and value lists, maintaining
the definition order of map entries.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
boolean |
add(int index,
Object key,
Object value)
Associates the specified value with the specified key to the specified index in this map if not already mapped. |
boolean |
add(Object key,
Object value)
Associates the specified value with the specified key at the end of this map if not already mapped. |
List |
entryList()
Returns an ordered list of mapped entries. |
Set |
entrySet()
Returns an ordered set of mapped entries. |
Object |
get(int index)
Gets the indexed value in this map. |
Map.Entry |
getEntryAt(int index)
Gets the indexed entry in this map. |
Object |
getKeyAt(int index)
Gets the indexed key in this map. |
int |
indexOfKey(Object key)
Returns the index of the specified key, or -1 if not found. |
boolean |
isModifiable()
Checks whether this map is modifiable. |
List |
keyList()
Returns an ordered list of mapped keys. |
Set |
keySet()
Returns an ordered set of mapped keys. |
Object |
put(int index,
Object key,
Object value)
Associates the specified value with the specified key to the specified index in this map. |
Object |
putIfAbsent(int index,
Object key,
Object value)
Associates the specified value with the specified key to the specified index in this map if not already mapped. |
Object |
remove(int index)
Removes the indexed element in this map. |
Object |
replace(int index,
Object value)
Replaces the indexed element in this map. |
List |
valueList()
Returns an ordered list of mapped values. |
Collection |
values()
Returns an ordered collection of mapped values. |
| Methods inherited from interface java.util.concurrent.ConcurrentMap |
|---|
putIfAbsent, remove, replace, replace |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size |
| Method Detail |
|---|
boolean isModifiable()
int indexOfKey(Object key)
key - the key.
Object getKeyAt(int index)
index - the index.
IndexOutOfBoundsException - if the index is out of range.Object get(int index)
index - the index.
IndexOutOfBoundsException - if the index is out of range.Map.Entry getEntryAt(int index)
index - the index.
IndexOutOfBoundsException - if the index is out of range.
Object put(int index,
Object key,
Object value)
index - the index.key - key with which the specified value is to be associated.value - value to be associated with the specified key.
IndexOutOfBoundsException - if the index is out of range.
Object putIfAbsent(int index,
Object key,
Object value)
index - the index.key - key with which the specified value is to be associated.value - value to be associated with the specified key.
boolean add(Object key,
Object value)
key - key with which the specified value is to be associated.value - value to be associated with the specified key.
boolean add(int index,
Object key,
Object value)
index - the index.key - key with which the specified value is to be associated.value - value to be associated with the specified key.
Object replace(int index,
Object value)
index - the index.value - the new value.
IndexOutOfBoundsException - if the index is out of range.Object remove(int index)
index - the index.
IndexOutOfBoundsException - if the index is out of range.Set keySet()
keySet in interface MapCollection values()
values in interface MapSet entrySet()
entrySet in interface MapList keyList()
List valueList()
List entryList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||