Interface SerializableUnaryOperator<T>

All Superinterfaces:
Function<T,T>, Serializable, UnaryOperator<T>
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 SerializableUnaryOperator<T> extends UnaryOperator<T>, Serializable
Serializable version of UnaryOperator
  • Method Details

    • identity

      static <T> SerializableUnaryOperator<T> identity()
      Returns a unary operator that always returns its input argument.
      Type Parameters:
      T - the type of the input and output of the operator
      Returns:
      a unary operator that always returns its input argument