Modifier and Type | Method and Description |
---|---|
void |
add(K key,
V value)
Add a value to the current list of values for the supplied key.
|
V |
getFirst(K key)
A shortcut to get the first value of the supplied key.
|
void |
putSingle(K key,
V value)
Set the key's value to be a one item list consisting of the supplied value.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
void putSingle(K key, V value)
key
- the keyvalue
- the single value of the keyvoid add(K key, V value)
key
- the keyvalue
- the value to be added.Copyright © 2014 Sun Microsystems, Inc. All rights reserved.