Interface Runner<A,​F extends com.jnape.palatable.lambda.functor.Functor<?,​F>,​FA extends com.jnape.palatable.lambda.functor.Functor<A,​F>>

  • Type Parameters:
    A - the carrier type of the application return
    F - the Functor type of the application return
    FA - the application return type
    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 Runner<A,​F extends com.jnape.palatable.lambda.functor.Functor<?,​F>,​FA extends com.jnape.palatable.lambda.functor.Functor<A,​F>>
    An application
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      FA run()
      Represents the main body of an application.
      static <A,​F extends com.jnape.palatable.lambda.functor.Functor<?,​F>,​FA extends com.jnape.palatable.lambda.functor.Functor<A,​F>>
      Runner<A,​F,​FA>
      runner​(Runner<A,​F,​FA> runner)
      A convenience method for correctly typing a lambda as an Runner.
    • Method Detail

      • run

        FA run()
        Represents the main body of an application.
        Returns:
        the result of running the application
      • runner

        static <A,​F extends com.jnape.palatable.lambda.functor.Functor<?,​F>,​FA extends com.jnape.palatable.lambda.functor.Functor<A,​F>> Runner<A,​F,​FA> runner​(Runner<A,​F,​FA> runner)
        A convenience method for correctly typing a lambda as an Runner.
        Type Parameters:
        A - the carrier type of the application return
        F - the Functor type of the application return
        FA - the application return type
        Parameters:
        runner - the return value
        Returns:
        application is returned as-is