K
- Key Type
V
- Values Type
public interface MultiValueMap<K,V> extends Map<K,List<V>>
Modifier and Type | Method and Description |
---|---|
void |
add(K key, V value, V... moreValues) |
V |
getFirst(K key) |
V |
getLast(K key) |
V |
getSingle(K key) |
void |
setAll(Map<K,V> map) |
void |
setSingle(K key, V value) |
Map<K,V> |
toMapFirstValues() |
Map<K,V> |
toMapLastValues() |
Map<K,V> |
toMapSingleValues() |
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
V getSingle(K key) throws IllegalStateException
IllegalStateException
Map<K,V> toMapSingleValues() throws IllegalStateException
IllegalStateException