- All Superinterfaces:
Operation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function representing operation with a unary operator.
-
Method Summary
Modifier and TypeMethodDescriptionint
apply
(int operand) Returns the value operated with the specified operand.default Executable
Returns theExecutable
object.
-
Method Details
-
apply
int apply(int operand) Returns the value operated with the specified operand.- Parameters:
operand
- The operand.- Returns:
- The operation result.
-
toExecutable
Returns theExecutable
object.- Specified by:
toExecutable
in interfaceOperation
- Returns:
- The
Executable
object.
-