Class Functions


  • public class Functions
    extends Object
    Function utility methods.
    Author:
    Paul Ferraro
    • Method Detail

      • identity

        public static <R,​T extends R> Function<T,​R> identity()
        Returns a function that always returns its input argument.
        Type Parameters:
        T - the input type to the function
        R - the output type of the function
        Returns:
        a function that always returns its input argument