public interface IntMap<V>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IntMap.EntryConsumer<V,E extends Throwable>
The bridge for consuming all entries of the map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(int key)
Returns true if the map contains the key, otherwise false.
|
boolean |
containsValue(V val)
Returns true if the map contains one or more values, otherwise false.
|
<E extends Throwable> |
forEach(IntMap.EntryConsumer<V,E> act)
This method work under a read lock, be careful with long operations inside.
|
V |
get(int key)
Returns value associated with the key. if the map doesn't contain the key, returns null.
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
V |
put(int key,
V val)
Save the pair into the map.
|
V |
putIfAbsent(int key,
V val)
Does put into the map if a pair isn't present, otherwise returns stored value.
|
V |
remove(int key) |
int |
size()
Returns count of elements.
|
boolean containsKey(int key)
key - tests key value.boolean containsValue(V val)
val - value to be associated with the specified key.V get(int key)
key - key with which the specified value is to be associated.V put(int key, V val)
key - key with which the specified value is to be associated.val - value to be associated with the specified key.V remove(int key)
key - key with which the specified value is to be associated.V putIfAbsent(int key, V val)
key - key with which the specified value is to be associated..val - value to be associated with the specified key..<E extends Throwable> void forEach(IntMap.EntryConsumer<V,E> act) throws E extends Throwable
act - Action.E extends Throwableint size()
boolean isEmpty()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020