Package ratpack.func
Interface Function.ConditionalSpec<I,O>
-
- Type Parameters:
I
- the input typeO
- the output type
public static interface Function.ConditionalSpec<I,O>
A spec for adding conditions to a conditional function.- Since:
- 1.5
- See Also:
Function.conditional(Function, Action)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Function.ConditionalSpec<I,O>
when(Predicate<? super I> predicate, Function<? super I,? extends O> function)
Adds a conditional function.
-