public class StreamCase extends CaseBeingBuilt
| Constructor and Description |
|---|
StreamCase() |
| Modifier and Type | Method and Description |
|---|---|
<R,V,T,X> MatchingInstance<T,X> |
streamOfResponsibility(java.util.stream.Stream<? extends ChainOfResponsibility<V,X>> stream)
Build a 'Stream of responsibility' pattern
Stream of responsibility equivalent to ChainOfResponsibility pattern
ChainOfResponsibility interface includes a Predicate and an Action - each will be used to build a case
|
<R,V,T,X> MatchingInstance<T,X> |
streamOfResponsibilityFromTuple(java.util.stream.Stream<Two<java.util.function.Predicate<V>,java.util.function.Function<V,X>>> stream)
Build a 'Stream of responsibility' pattern
Stream of responsibility equivalent to ChainOfResponsibility pattern
Tuple includes a Predicate and an Action (Function) - each will be used to build a case
|
public <R,V,T,X> MatchingInstance<T,X> streamOfResponsibility(java.util.stream.Stream<? extends ChainOfResponsibility<V,X>> stream)
stream - Each member of this Stream will result in one additional Casepublic <R,V,T,X> MatchingInstance<T,X> streamOfResponsibilityFromTuple(java.util.stream.Stream<Two<java.util.function.Predicate<V>,java.util.function.Function<V,X>>> stream)
stream - Each member of this Stream will result in one additional Case