Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(int key)
Returns
true if this multi-map contains a mapping for the
specified key. |
boolean |
containsMapping(int key,
int value)
Returns
true if this multi-map contains a mapping from specified
key to the specified value. |
boolean |
containsValue(int key)
Returns
true if this multi-map contains from any key to the
specified value. |
IntSet |
get(int key)
Returns the set of values mapped to this key or
null of the key
is not mapped to any values |
IntSet |
keySet()
Returns a
Set view of the mappings contained in this multi-map. |
boolean |
put(int key,
int value)
Adds the specified value to the set of values associated with the
specified key in this map.
|
void |
putAll(IntIntMultiMap m)
Copies all of the mappings from the specified map to this mutli-map
|
boolean |
putMany(int key,
Collection<Integer> values)
Adds all of the specified values to the set of values associated with the
specified key in this map.
|
boolean |
putMany(int key,
IntCollection values)
Adds all of the specified values to the set of values associated with the
specified key in this map.
|
IntSet |
remove(int key)
Removes the mapping for a key from this multi-map if it is present
|
boolean |
remove(int key,
int value)
Removes the specified mapping for a key if it is present.
|
IntCollection |
values()
Returns a
Collection view of the values contained in this map. |
boolean containsKey(int key)
true
if this multi-map contains a mapping for the
specified key.boolean containsMapping(int key, int value)
true
if this multi-map contains a mapping from specified
key to the specified value.boolean containsValue(int key)
true
if this multi-map contains from any key to the
specified value.IntSet get(int key)
null
of the key
is not mapped to any valuesboolean put(int key, int value)
key
- key with which the specified value is to be associatedvalue
- a value to be associated with the specified keytrue
if the provided value was not already in the set of
value mapped to the specified keyvoid putAll(IntIntMultiMap m)
boolean putMany(int key, IntCollection values)
key
- key with which the specified value is to be associatedvalues
- a collection of values to be associated with the specified
keytrue
if at least one of the provided value was not
already in the set of value mapped to the specified keyboolean putMany(int key, Collection<Integer> values)
key
- key with which the specified value is to be associatedvalues
- a collection of values to be associated with the specified
keytrue
if at least one of the provided value was not
already in the set of value mapped to the specified keyIntSet remove(int key)
boolean remove(int key, int value)
true
if the specified mapping was removedIntCollection values()
Collection
view of the values contained in this map.Copyright © 2012. All Rights Reserved.