Interface RefToRefFunction<I,O>

Type Parameters:
I - The input type.
O - The output type.
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 RefToRefFunction<I,O>
A function that accepts an Object and returns an Object.
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(I e)
    Applies the function.
    static <T> RefToRefFunction<T,T>
    Returns the Object identity function.
  • Method Details

    • apply

      O apply(I e)
      Applies the function.
      Parameters:
      e - The argument.
      Returns:
      The result.
    • identity

      static <T> RefToRefFunction<T,T> identity()
      Returns the Object identity function. The identity function always returns the input argument.
      Type Parameters:
      T - The input and output type of the function.
      Returns:
      The identity function.