-
- All Superinterfaces:
java.util.function.Function<java.lang.String,java.lang.String>,java.util.function.UnaryOperator<java.lang.String>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StringUnaryOperator extends java.util.function.UnaryOperator<java.lang.String>Represents an operation on a String operand that produces a String result. This is a specialization ofUnaryOperatorfor the case where the operand is String. This is a functional interface whose functional method isFunction.apply(Object).- Since:
- 1.8
- See Also:
Function
-
-
Method Summary
Static Methods Modifier and Type Method Description static StringUnaryOperatoridentity()Returns a unary operator that always returns its input argument.
-
-
-
Method Detail
-
identity
static StringUnaryOperator identity()
Returns a unary operator that always returns its input argument.- Returns:
- a unary operator that always returns its input argument
-
-