| Modifier and Type | Method and Description |
|---|---|
MutableHash<K,V> |
clear()
Remove all the key-value pair at this hash.
|
MutableHash<K,V> |
filter(java.util.function.BiPredicate<K,V> condition)
Return a new hash with the key-value pairs of the original Hash which satisfy the condition.
|
MutableHash<K,V> |
filterInPlace(java.util.function.BiPredicate<K,V> condition)
In-place method of
filter(BiPredicate) |
MutableHash<V,K> |
invert()
Returns a new hash created by using hash’s values as keys, and the keys as values.
|
Seq<K> |
keysOf(V v)
Returns a Seq of keys of the given value.
|
MutableHash<K,V> |
merge(Hash<? extends K,? extends V> another)
Returns a new hash containing the mappings of the specified hash and this hash itself.
|
MutableHash<K,V> |
mergeInPlace(Hash<? extends K,? extends V> another)
In-place method of
merge(Hash) |
MutableHash<K,V> |
put(K k,
V v) |
MutableHash<K,V> |
putIfAbsent(K k,
V v) |
MutableHash<K,V> |
putIfAbsentInPlace(K k,
V v)
In-place method of
#putIfAbsent(K, V) |
MutableHash<K,V> |
putInPlace(K k,
V v)
In-place method of
#put(K, V) |
MutableHash<K,V> |
reject(java.util.function.BiPredicate<K,V> condition)
Return a new hash with the key-value pairs of the original Hash which don't satisfy the condition.
|
MutableHash<K,V> |
rejectInPlace(java.util.function.BiPredicate<K,V> condition)
In-place method of
reject(BiPredicate) |
MutableHash<K,V> |
remove(K k)
Removes the mapping for a key from this map if it is present
(optional operation).
|
MutableHash<K,V> |
remove(K k,
V v)
Removes the entry for the specified key only if it is currently
mapped to the specified value.
|
MutableHash<K,V> |
removeInPlace(K k)
In-place method of
#remove(K) |
MutableHash<K,V> |
removeInPlace(K k,
V v)
In-place method of
#remove(K, V) |
MutableHash<K,V> |
replace(K k,
V v)
Replaces the entry for the specified key only if it is
currently mapped to some value.
|
MutableHash<K,V> |
replace(K k,
V oldValue,
V newValue)
Replaces the entry for the specified key only if currently
mapped to the specified value.
|
MutableHash<K,V> |
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
Replaces each entry's value with the result of invoking the given
function on that entry until all entries have been processed or the
function throws an exception.
|
MutableHash<K,V> |
replaceAllInPlace(java.util.function.BiFunction<? super K,? super V,? extends V> function)
In-place method of
replaceAll(BiFunction) |
MutableHash<K,V> |
replaceInPlace(K k,
V v)
In-place method of
#replace(K, V) |
MutableHash<K,V> |
replaceInPlace(K k,
V oldValue,
V newValue)
In-place method of
#replace(K, V, V) |
containsAny, containsKey, containsValue, count, countIf, entrySeq, get, isEmpty, keys, size, valuesMutableHash<K,V> putIfAbsent(K k, V v)
putIfAbsent in interface Hash<K,V>MutableHash<K,V> filter(java.util.function.BiPredicate<K,V> condition)
Hashfilter in interface Hash<K,V>condition - the condition used to filter key-value pairs by passing the key and value of the pair,
returns true if the key-value pair satisfies the condition, otherwise returns false.MutableHash<K,V> reject(java.util.function.BiPredicate<K,V> condition)
Hashreject in interface Hash<K,V>condition - the condition used to filter key-value pairs by passing the key and value of the pair,
returns true if the key-value pair satisfies the condition, otherwise returns false.MutableHash<V,K> invert()
HashMutableHash<K,V> merge(Hash<? extends K,? extends V> another)
HashMutableHash<K,V> remove(K k)
Hash(key==null ? k==null : key.equals(k)), that mapping
is removed. (The map can contain at most one such mapping.)MutableHash<K,V> remove(K k, V v)
HashSeq<K> keysOf(V v)
HashMutableHash<K,V> replace(K k, V v)
HashMutableHash<K,V> replace(K k, V oldValue, V newValue)
HashMutableHash<K,V> replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
HashreplaceAll in interface Hash<K,V>function - the function to apply to each entryMutableHash<K,V> putInPlace(K k, V v)
#put(K, V)MutableHash<K,V> putIfAbsentInPlace(K k, V v)
#putIfAbsent(K, V)MutableHash<K,V> removeInPlace(K k)
#remove(K)MutableHash<K,V> removeInPlace(K k, V v)
#remove(K, V)MutableHash<K,V> filterInPlace(java.util.function.BiPredicate<K,V> condition)
filter(BiPredicate)MutableHash<K,V> rejectInPlace(java.util.function.BiPredicate<K,V> condition)
reject(BiPredicate)MutableHash<K,V> mergeInPlace(Hash<? extends K,? extends V> another)
merge(Hash)MutableHash<K,V> clear()
MutableHash<K,V> replaceInPlace(K k, V v)
#replace(K, V)MutableHash<K,V> replaceInPlace(K k, V oldValue, V newValue)
#replace(K, V, V)MutableHash<K,V> replaceAllInPlace(java.util.function.BiFunction<? super K,? super V,? extends V> function)
replaceAll(BiFunction)