E
- the element typepublic interface IntIndexMap<E> extends Iterable<E>, ToIntFunction<E>, Collection<E>
Modifier and Type | Method and Description |
---|---|
E |
computeIfAbsent(int key,
IntFunction<E> producer)
Compute a map value if no mapping exists.
|
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(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.
|
applyAsInt
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
boolean 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(Object o)
remove
in interface Collection<E>
E putIfAbsent(E value)
value
- the value to addnull
if the existing value was null
or the value was added successfullyE computeIfAbsent(int key, IntFunction<E> producer)
key
- the keyproducer
- the producer which creates a new valueE replace(E value)
value
- the value to storenull
) or null
if there was no mapping to replaceCopyright © 2017 JBoss by Red Hat. All rights reserved.