Interface Function<T,​R>

  • Type Parameters:
    T - the type of the function argument
    R - the type of the function result
    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 Function<T,​R>
    Functional interface mapping a value to a result.
    Author:
    Herbert Praehofer
    See Also:
    Function
    • Method Detail

      • apply

        R apply​(T t)
        Applies the argument, returns a result.
        Parameters:
        t - the argument value
        Returns:
        the function result