| Package | Description |
|---|---|
| java.util |
Back 2 Browser Bytecode Translator
Copyright (C) 2012 Jaroslav Tulach
|
| java.util.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
| Modifier and Type | Method and Description |
|---|---|
default V |
Map.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). |
default V |
Map.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.
|
default V |
Map.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
associated with null, associates it with the given non-null value.
|
default void |
Map.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 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.
|
| Modifier and Type | Method and Description |
|---|---|
default <V> BiFunction<T,U,V> |
BiFunction.andThen(Function<? super R,? extends V> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
| Modifier and Type | Method and Description |
|---|---|
<U> U |
Stream.reduce(U identity,
BiFunction<U,? super T,U> accumulator,
BinaryOperator<U> combiner)
Performs a reduction on the
elements of this stream, using the provided identity, accumulation and
combining functions.
|
Copyright © 2021 API Design. All Rights Reserved.