V
- the value type stored in the map.public interface IntObjectMap<V>
int
s as keys.Modifier and Type | Interface and Description |
---|---|
static interface |
IntObjectMap.Entry<V>
An Entry in the map.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
Collection<V> |
values()
Gets the values contatins in this map as a
Collection . |
V[] |
values(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)
Iterable<IntObjectMap.Entry<V>> entries()
int[] keys()
Collection<V> values()
Collection
.Copyright © 2008–2015 The Netty Project. All rights reserved.