Package org.movealong.sly.app
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 returnF- theFunctortype of the application returnFA- 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 FArun()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 anRunner.
-
-
-
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 anRunner.- Type Parameters:
A- the carrier type of the application returnF- theFunctortype of the application returnFA- the application return type- Parameters:
runner- the return value- Returns:
applicationis returned as-is
-
-