V
- the value type stored in the map.public interface IntObjectMap<V>
int
s as keys.限定符和类型 | 接口和说明 |
---|---|
static interface |
IntObjectMap.Entry<V>
An Entry in the map.
|
限定符和类型 | 方法和说明 |
---|---|
void |
clear()
Clears all entries from this map.
|
boolean |
containsKey(int key)
Indicates whether or not this map contains a value for the specified key.
|
boolean |
containsValue(V value)
Indicates whether or not the map contains the specified value.
|
java.lang.Iterable<IntObjectMap.Entry<V>> |
entries()
Gets an iterable collection of the entries contained in this map.
|
V |
get(int key)
Gets the value in the map with the specified key.
|
boolean |
isEmpty()
Indicates whether or not this map is empty (i.e
size() == {@code 0]). |
int[] |
keys()
Gets the keys contained in this map.
|
V |
put(int key,
V value)
Puts the given entry into the map.
|
void |
putAll(IntObjectMap<V> sourceMap)
Puts all of the entries from the given map into this map.
|
V |
remove(int key)
Removes the entry with the specified key.
|
int |
size()
Returns the number of entries contained in this map.
|
java.util.Collection<V> |
values()
Gets the values contatins in this map as a
Collection . |
V[] |
values(java.lang.Class<V> clazz)
Gets the values contained in this map.
|
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.void putAll(IntObjectMap<V> sourceMap)
V remove(int key)
key
- the key for the entry to be removed from this map.null
if there was no mapping.int size()
boolean isEmpty()
size()
== {@code 0]).void clear()
boolean containsKey(int key)
boolean containsValue(V value)
java.lang.Iterable<IntObjectMap.Entry<V>> entries()
int[] keys()
java.util.Collection<V> values()
Collection
.