Interface Function<T,​R>

  • All Superinterfaces:
    java.io.Serializable

    public interface Function<T,​R>
    extends java.io.Serializable
    A Function interface. Used to create first-class-functions is Java. Serializable is needed to be able to grab line number for Java 8 lambdas. Supports throwing Exception in the apply, which the java.util.function.Function counterpart does not.
    • Method Detail

      • apply

        R apply​(T param)
         throws java.lang.Exception
        Throws:
        java.lang.Exception