Package | Description |
---|---|
com.koloboke.collect.map |
Contains interfaces of
Map specializations, their factories and cursors. |
com.koloboke.function |
The complete set of functional interfaces, following
java.util.function scheme. |
Modifier and Type | Method and Description |
---|---|
V |
ObjObjMap.compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction)
Attempts to compute a mapping for the specified key and its current mapped value
(or
null if there is no current mapping). |
V |
ObjObjMap.computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction)
If the value for the specified key is present and non-null,
attempts to compute a new mapping given the key and its current mapped value.
|
V |
ByteObjMap.merge(byte key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
V |
CharObjMap.merge(char key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
V |
DoubleObjMap.merge(double key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
V |
FloatObjMap.merge(float key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
V |
IntObjMap.merge(int key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
V |
ObjObjMap.merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
V |
LongObjMap.merge(long key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
V |
ShortObjMap.merge(short key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction)
If the specified key is not already associated with a value (or is mapped to
null ), associates
it with the given value, otherwise, replaces the value with the results of the given
remapping function. |
void |
ObjObjMap.replaceAll(BiFunction<? super K,? super V,? extends V> function)
Replaces each entry's value with the result of invoking the given function on that entry,
in the order entries are returned by an entry set iterator, until all entries have been
processed or the function throws an exception.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BinaryOperator<T>
Represents an operation upon two operands of the same type, producing a result
of the same type as the operands.
|