Interface Function<T,​R>


  • public interface Function<T,​R>
    Represents a function that accepts one argument and produces a result. Very simple and stupid interface for representing functions f(T) → R.
    • Method Detail

      • apply

        R apply​(T t)
        Applies this function to the given argument.
        Parameters:
        t - the function argument
        Returns:
        the function result