V
- the value type stored in the map.public interface IntObjectMap<V> extends Map<Integer,V>
int
s as keys.Modifier and Type | Interface and Description |
---|---|
static interface |
IntObjectMap.PrimitiveEntry<V>
A primitive entry in the map, provided by the iterator from
entries() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(int key)
Indicates whether or not this map contains a value for the specified key.
|
Iterable<IntObjectMap.PrimitiveEntry<V>> |
entries()
Gets an iterable to traverse over the primitive entries contained in this map.
|
V |
get(int key)
Gets the value in the map with the specified key.
|
V |
put(int key,
V value)
Puts the given entry into the map.
|
V |
remove(int key)
Removes the entry with the specified key.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
V get(int key)
key
- the key whose associated value is to be returned.null
if the key was not found in the map.V put(int key, V value)
key
- the key of the entry.value
- the value of the entry.null
if there was no previous mapping.V remove(int key)
key
- the key for the entry to be removed from this map.null
if there was no mapping.Iterable<IntObjectMap.PrimitiveEntry<V>> entries()
IntObjectMap.PrimitiveEntry
s returned by the Iterator
may change as the Iterator
progresses. The caller should not rely on IntObjectMap.PrimitiveEntry
key/value stability.boolean containsKey(int key)
Copyright © 2008–2017 The Netty Project. All rights reserved.