Module life.expert

Interface StringUnaryOperator

  • 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 of UnaryOperator for the case where the operand is String. This is a functional interface whose functional method is Function.apply(Object).
    Since:
    1.8
    See Also:
    Function
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static StringUnaryOperator identity()
      Returns a unary operator that always returns its input argument.
      • Methods inherited from interface java.util.function.Function

        andThen, apply, compose
    • 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