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