K - key generic typeV - value generic typepublic final class ListValueMap<K,V> extends Object
| Constructor and Description |
|---|
ListValueMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the elements form the map
|
List<V> |
get(K key)
A null safe getter for the given key.
|
List<V> |
put(K key,
V value)
Adds the input value to the
List associated to the input key |
boolean |
remove(K key,
V value)
Removes the input value from the
List associated to the input key. |
int |
size() |
public void clear()
public List<V> put(K key, V value)
List associated to the input keykey - value - public boolean remove(K key, V value)
List associated to the input key.key - value - public List<V> get(K key)
key - public int size()
Copyright © 2015. All Rights Reserved.