Stay organized with collections
Save and categorize content based on your preferences.
java.util.function
Interfaces
BiConsumer |
Represents an operation that accepts two input arguments and returns no result.
|
BiFunction |
Represents a function that accepts two arguments and produces a result.
|
BinaryOperator |
Represents an operation upon two operands of the same type, producing a result of the same type as the operands.
|
BiPredicate |
Represents a predicate (boolean-valued function) of two arguments.
|
BooleanSupplier |
Represents a supplier of boolean -valued results.
|
Consumer |
Represents an operation that accepts a single input argument and returns no result.
|
DoubleBinaryOperator |
Represents an operation upon two double -valued operands and producing a double -valued result.
|
DoubleConsumer |
Represents an operation that accepts a single double -valued argument and returns no result.
|
DoubleFunction |
Represents a function that accepts a double-valued argument and produces a result.
|
DoublePredicate |
Represents a predicate (boolean-valued function) of one double -valued argument.
|
DoubleSupplier |
Represents a supplier of double -valued results.
|
DoubleToIntFunction |
Represents a function that accepts a double-valued argument and produces an int-valued result.
|
DoubleToLongFunction |
Represents a function that accepts a double-valued argument and produces a long-valued result.
|
DoubleUnaryOperator |
Represents an operation on a single double -valued operand that produces a double -valued result.
|
Function |
Represents a function that accepts one argument and produces a result.
|
IntBinaryOperator |
Represents an operation upon two int -valued operands and producing an int -valued result.
|
IntConsumer |
Represents an operation that accepts a single int -valued argument and returns no result.
|
IntFunction |
Represents a function that accepts an int-valued argument and produces a result.
|
IntPredicate |
Represents a predicate (boolean-valued function) of one int -valued argument.
|
IntSupplier |
Represents a supplier of int -valued results.
|
IntToDoubleFunction |
Represents a function that accepts an int-valued argument and produces a double-valued result.
|
IntToLongFunction |
Represents a function that accepts an int-valued argument and produces a long-valued result.
|
IntUnaryOperator |
Represents an operation on a single int -valued operand that produces an int -valued result.
|
LongBinaryOperator |
Represents an operation upon two long -valued operands and producing a long -valued result.
|
LongConsumer |
Represents an operation that accepts a single long -valued argument and returns no result.
|
LongFunction |
Represents a function that accepts a long-valued argument and produces a result.
|
LongPredicate |
Represents a predicate (boolean-valued function) of one long -valued argument.
|
LongSupplier |
Represents a supplier of long -valued results.
|
LongToDoubleFunction |
Represents a function that accepts a long-valued argument and produces a double-valued result.
|
LongToIntFunction |
Represents a function that accepts a long-valued argument and produces an int-valued result.
|
LongUnaryOperator |
Represents an operation on a single long -valued operand that produces a long -valued result.
|
ObjDoubleConsumer |
Represents an operation that accepts an object-valued and a double -valued argument, and returns no result.
|
ObjIntConsumer |
Represents an operation that accepts an object-valued and a int -valued argument, and returns no result.
|
ObjLongConsumer |
Represents an operation that accepts an object-valued and a long -valued argument, and returns no result.
|
Predicate |
Represents a predicate (boolean-valued function) of one argument.
|
Supplier |
Represents a supplier of results.
|
ToDoubleBiFunction |
Represents a function that accepts two arguments and produces a double-valued result.
|
ToDoubleFunction |
Represents a function that produces a double-valued result.
|
ToIntBiFunction |
Represents a function that accepts two arguments and produces an int-valued result.
|
ToIntFunction |
Represents a function that produces an int-valued result.
|
ToLongBiFunction |
Represents a function that accepts two arguments and produces a long-valued result.
|
ToLongFunction |
Represents a function that produces a long-valued result.
|
UnaryOperator |
Represents an operation on a single operand that produces a result of the same type as its operand.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# java.util.function\n==================\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [BiConsumer](/reference/kotlin/java/util/function/BiConsumer) | Represents an operation that accepts two input arguments and returns no result. |\n| [BiFunction](/reference/kotlin/java/util/function/BiFunction) | Represents a function that accepts two arguments and produces a result. |\n| [BinaryOperator](/reference/kotlin/java/util/function/BinaryOperator) | Represents an operation upon two operands of the same type, producing a result of the same type as the operands. |\n| [BiPredicate](/reference/kotlin/java/util/function/BiPredicate) | Represents a predicate (boolean-valued function) of two arguments. |\n| [BooleanSupplier](/reference/kotlin/java/util/function/BooleanSupplier) | Represents a supplier of `boolean`-valued results. |\n| [Consumer](/reference/kotlin/java/util/function/Consumer) | Represents an operation that accepts a single input argument and returns no result. |\n| [DoubleBinaryOperator](/reference/kotlin/java/util/function/DoubleBinaryOperator) | Represents an operation upon two `double`-valued operands and producing a `double`-valued result. |\n| [DoubleConsumer](/reference/kotlin/java/util/function/DoubleConsumer) | Represents an operation that accepts a single `double`-valued argument and returns no result. |\n| [DoubleFunction](/reference/kotlin/java/util/function/DoubleFunction) | Represents a function that accepts a double-valued argument and produces a result. |\n| [DoublePredicate](/reference/kotlin/java/util/function/DoublePredicate) | Represents a predicate (boolean-valued function) of one `double`-valued argument. |\n| [DoubleSupplier](/reference/kotlin/java/util/function/DoubleSupplier) | Represents a supplier of `double`-valued results. |\n| [DoubleToIntFunction](/reference/kotlin/java/util/function/DoubleToIntFunction) | Represents a function that accepts a double-valued argument and produces an int-valued result. |\n| [DoubleToLongFunction](/reference/kotlin/java/util/function/DoubleToLongFunction) | Represents a function that accepts a double-valued argument and produces a long-valued result. |\n| [DoubleUnaryOperator](/reference/kotlin/java/util/function/DoubleUnaryOperator) | Represents an operation on a single `double`-valued operand that produces a `double`-valued result. |\n| [Function](/reference/kotlin/java/util/function/Function) | Represents a function that accepts one argument and produces a result. |\n| [IntBinaryOperator](/reference/kotlin/java/util/function/IntBinaryOperator) | Represents an operation upon two `int`-valued operands and producing an `int`-valued result. |\n| [IntConsumer](/reference/kotlin/java/util/function/IntConsumer) | Represents an operation that accepts a single `int`-valued argument and returns no result. |\n| [IntFunction](/reference/kotlin/java/util/function/IntFunction) | Represents a function that accepts an int-valued argument and produces a result. |\n| [IntPredicate](/reference/kotlin/java/util/function/IntPredicate) | Represents a predicate (boolean-valued function) of one `int`-valued argument. |\n| [IntSupplier](/reference/kotlin/java/util/function/IntSupplier) | Represents a supplier of `int`-valued results. |\n| [IntToDoubleFunction](/reference/kotlin/java/util/function/IntToDoubleFunction) | Represents a function that accepts an int-valued argument and produces a double-valued result. |\n| [IntToLongFunction](/reference/kotlin/java/util/function/IntToLongFunction) | Represents a function that accepts an int-valued argument and produces a long-valued result. |\n| [IntUnaryOperator](/reference/kotlin/java/util/function/IntUnaryOperator) | Represents an operation on a single `int`-valued operand that produces an `int`-valued result. |\n| [LongBinaryOperator](/reference/kotlin/java/util/function/LongBinaryOperator) | Represents an operation upon two `long`-valued operands and producing a `long`-valued result. |\n| [LongConsumer](/reference/kotlin/java/util/function/LongConsumer) | Represents an operation that accepts a single `long`-valued argument and returns no result. |\n| [LongFunction](/reference/kotlin/java/util/function/LongFunction) | Represents a function that accepts a long-valued argument and produces a result. |\n| [LongPredicate](/reference/kotlin/java/util/function/LongPredicate) | Represents a predicate (boolean-valued function) of one `long`-valued argument. |\n| [LongSupplier](/reference/kotlin/java/util/function/LongSupplier) | Represents a supplier of `long`-valued results. |\n| [LongToDoubleFunction](/reference/kotlin/java/util/function/LongToDoubleFunction) | Represents a function that accepts a long-valued argument and produces a double-valued result. |\n| [LongToIntFunction](/reference/kotlin/java/util/function/LongToIntFunction) | Represents a function that accepts a long-valued argument and produces an int-valued result. |\n| [LongUnaryOperator](/reference/kotlin/java/util/function/LongUnaryOperator) | Represents an operation on a single `long`-valued operand that produces a `long`-valued result. |\n| [ObjDoubleConsumer](/reference/kotlin/java/util/function/ObjDoubleConsumer) | Represents an operation that accepts an object-valued and a `double`-valued argument, and returns no result. |\n| [ObjIntConsumer](/reference/kotlin/java/util/function/ObjIntConsumer) | Represents an operation that accepts an object-valued and a `int`-valued argument, and returns no result. |\n| [ObjLongConsumer](/reference/kotlin/java/util/function/ObjLongConsumer) | Represents an operation that accepts an object-valued and a `long`-valued argument, and returns no result. |\n| [Predicate](/reference/kotlin/java/util/function/Predicate) | Represents a predicate (boolean-valued function) of one argument. |\n| [Supplier](/reference/kotlin/java/util/function/Supplier) | Represents a supplier of results. |\n| [ToDoubleBiFunction](/reference/kotlin/java/util/function/ToDoubleBiFunction) | Represents a function that accepts two arguments and produces a double-valued result. |\n| [ToDoubleFunction](/reference/kotlin/java/util/function/ToDoubleFunction) | Represents a function that produces a double-valued result. |\n| [ToIntBiFunction](/reference/kotlin/java/util/function/ToIntBiFunction) | Represents a function that accepts two arguments and produces an int-valued result. |\n| [ToIntFunction](/reference/kotlin/java/util/function/ToIntFunction) | Represents a function that produces an int-valued result. |\n| [ToLongBiFunction](/reference/kotlin/java/util/function/ToLongBiFunction) | Represents a function that accepts two arguments and produces a long-valued result. |\n| [ToLongFunction](/reference/kotlin/java/util/function/ToLongFunction) | Represents a function that produces a long-valued result. |\n| [UnaryOperator](/reference/kotlin/java/util/function/UnaryOperator) | Represents an operation on a single operand that produces a result of the same type as its operand. |"]]