public class CollectionRule<T,P> extends Object implements RuleCollection<T,P>
| Constructor and Description |
|---|
CollectionRule(java.util.function.Function<T,Collection<P>> collectionFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(java.util.function.Predicate<Collection<P>> predicate,
Rule<Collection<P>> rule) |
boolean |
apply(T instance) |
WhenCollection<T,P> |
when(java.util.function.Predicate<Collection<P>> when) |
public CollectionRule(java.util.function.Function<T,Collection<P>> collectionFunction)
public void addRule(java.util.function.Predicate<Collection<P>> predicate, Rule<Collection<P>> rule)
addRule in interface RuleBuilder<T,Collection<P>>public WhenCollection<T,P> when(java.util.function.Predicate<Collection<P>> when)
when in interface RuleCollection<T,P>Copyright © 2019 com.github.mvallim. All rights reserved.