Java Reference
In-Depth Information
lists the functional interfaces that are contained within the
java.util.function
package, along with a description of each. Note that a
Predicate
test that returns a
Boolean
value.
Interface
Implementation Description
Function operation that accepts two input arguments and
returns no result.
BiConsumer<T,U>
Function that accepts two arguments and produces a res-
ult.
BiFunction<T,U,R>
Function operation upon two operands of the same type,
producing a result of the same type as the operands.
BinaryOperator<T>
Predicate of two arguments. Returns a Boolean value.
BiPredicate<T,U>
BooleanSupplier
Supplier of Boolean-valued results.
Function operation that accepts a single input argument
and returns no result.
Consumer<T>
Function operation upon two
double
-valued operands
and producing a
double
-valued result.
DoubleBinaryOperator
Function operation that accepts a single
double
-valued
argument and returns no result.
DoubleConsumer
Function that accepts a
double
-valued argument and
produces a result.
DoubleFunction<R>
Predicate of one
double
-valued argument.
DoublePredicate
Supplier of
double
-valued results.
DoubleSupplier
DoubleToIntFunction
Function that accepts a double-valued argument and pro-
duces an
int
-valued result.
Function that accepts a double-valued argument and pro-
duces a
long
-valued result.
DoubleToLongFunction
Function operation on a single
double
-valued operand
that produces a
double
-valued result.
DoubleUnaryOperator
Function that accepts one argument and produces a result.
Function<T,R>
Function operation upon two
int
-valued operands and
producing an
int
-valued result.
IntBinaryOperator