public static class CaseBuilder.InCaseOfBuilder<V>
extends java.lang.Object
| Constructor and Description |
|---|
InCaseOfBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<T,X> MatchingInstance<T,X> |
thenApply(TypedFunction<V,X> a)
Create a new Case with the supplied ActionWithReturn as the action
|
<T,X> MatchingInstance<T,X> |
thenConsume(Action<V> a)
Create a new Case with the supplied ActionWithReturn as the action
|
<T,R,X> Step<R,X> |
thenExtract(Extractor<T,R> extractor)
Post-process input supplied to matching, so input to Action will be different from input to Predicate
The supplied Extractor will transform input into new value which will be supplied to the Action.
|
public <T,R,X> Step<R,X> thenExtract(Extractor<T,R> extractor)
extractor - to transform input dataExtractorspublic <T,X> MatchingInstance<T,X> thenApply(TypedFunction<V,X> a)
a - Action to be executed when the new Case is triggeredpublic <T,X> MatchingInstance<T,X> thenConsume(Action<V> a)
a - Action to be executed when the new Case is triggered