Module aeonics.core
Package aeonics.util

Interface Functions.Function<A,​R>

  • Type Parameters:
    A - first argument type
    R - the return type
    All Known Subinterfaces:
    Functions.BiFunction<A,​B,​R>, Functions.QuadriFunction<A,​B,​C,​D,​R>, Functions.TriFunction<A,​B,​C,​R>
    Enclosing class:
    Functions
    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 static interface Functions.Function<A,​R>
    Represents a function that accepts one argument and produces a result.
    • Method Detail

      • apply

        R apply​(A a)
         throws java.lang.Exception
        Applies this function to the given argument.
        Parameters:
        a - the input argument
        Returns:
        the return value
        Throws:
        java.lang.Exception - if an error happens