|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sejda.common.collection.ListValueMap<K,V>
K - key generic typeV - value generic typepublic final class ListValueMap<K,V>
Map where the elements added to the same key are enqueued in a List.
| Constructor Summary | |
|---|---|
ListValueMap()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListValueMap()
| Method Detail |
|---|
public void clear()
public List<V> put(K key,
V value)
List associated to the input key
key - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||