Package | Description |
---|---|
ratpack.func |
General functional (i.e. Single Abstract Method) types.
|
Modifier and Type | Method and Description |
---|---|
Function.ConditionalSpec<I,O> |
Function.ConditionalSpec.when(Predicate<? super I> predicate,
Function<? super I,? extends O> function)
Adds a conditional function.
|
Modifier and Type | Method and Description |
---|---|
static <I,O> Function<I,O> |
Function.conditional(Action<? super Function.ConditionalSpec<I,O>> conditions)
Creates a function that delegates based on the specified conditions.
|
static <I,O> Function<I,O> |
Function.conditional(Function<? super I,? extends O> onElse,
Action<? super Function.ConditionalSpec<I,O>> conditions)
Creates a function that delegates based on the specified conditions.
|