E - the element typeinterface IntIndexMap<E> extends java.lang.Iterable<E>, IntIndexer<E>, java.util.Collection<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(int index)
Determine whether the given index is contained in the map.
|
E |
get(int index)
Get the value for the given index.
|
E |
put(E value)
Put a value into the map, replacing and returning any existing mapping.
|
E |
putIfAbsent(E value)
Put a value into the map if there is not already an existing mapping for it.
|
boolean |
remove(java.lang.Object o) |
E |
removeKey(int index)
Remove and return a value for the given index.
|
E |
replace(E value)
Put a value into the map only if there is an existing mapping for it.
|
boolean |
replace(E oldValue,
E newValue)
Replace an old value with a new value.
|
getKeyboolean containsKey(int index)
index - the indextrue if it is contained in the mapE get(int index)
index - the indexE removeKey(int index)
index - the indexE put(E value)
value - the value to addnull if the old value was null or was not presentboolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>E putIfAbsent(E value)
value - the value to addnull if the existing value was null or the value was added successfullyE replace(E value)
value - the value to storenull) or null if there was no mapping to replace