UnaryOperator (Java SE 26 & JDK 26)
- Type Parameters:
T- the type of the operand and result of the operator
- All Superinterfaces:
Function<T,T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Static Methods
identity()Returns a unary operator that always returns its input argument.
Methods declared in interface Function
Returns a composed function that first applies this function to its input, and then applies the
afterfunction to the result.Applies this function to the given argument.
Returns a composed function that first applies the
beforefunction to its input, and then applies this function to the result.
-
Method Details
-
identity
-