public static class FunctionalMap.Multimap<K,V> extends FunctionalMap<K,List<V>>
FunctionalMap.Multimap<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear() |
V |
compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
computeIfAbsent(K key,
Function<? super K,? extends V> mappingFunction) |
V |
computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
static <K,V> FunctionalMap.Multimap<K,V> |
create() |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
void |
forEach(BiConsumer<? super K,? super V> action) |
List<V> |
get(Object key) |
List<V> |
getFirstOfEachKey()
Return the first item of each list
|
V |
getOrDefault(Object key,
V defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
FunctionalMap.Multimap<K,V> |
putMultivalues(K key,
V... values) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
replaceAll(BiFunction<? super K,? super V,? extends V> function) |
int |
size() |
Collection<V> |
values() |
compute
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
protected final Map<K,V> delegate
public static <K,V> FunctionalMap.Multimap<K,V> create()
public FunctionalMap.Multimap<K,V> putMultivalues(K key, V... values)
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public void putAll(Map<? extends K,? extends V> m)
public Collection<V> values()
public boolean equals(Object o)
public int hashCode()
public V getOrDefault(Object key, V defaultValue)
getOrDefault
in interface Map<K,V>
public void forEach(BiConsumer<? super K,? super V> action)
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
replaceAll
in interface Map<K,V>
public V putIfAbsent(K key, V value)
putIfAbsent
in interface Map<K,V>
public boolean replace(K key, V oldValue, V newValue)
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent
in interface Map<K,V>
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent
in interface Map<K,V>
public V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
Copyright © 2020 Play SQL. All rights reserved.