public class PropetyRule<T,P> extends Object implements RuleBuilder<T,P>, 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<?> rule) |
void |
apply(T instance) |
WhenProperty<T,P> |
when(java.util.function.Predicate<P> predicate) |
public PropetyRule(java.util.function.Function<T,P> propertyFunction)
public void addRule(java.util.function.Predicate<P> predicate, Rule<?> rule)
addRule in interface RuleBuilder<T,P>public WhenProperty<T,P> when(java.util.function.Predicate<P> predicate)
when in interface RuleProperty<T,P>Copyright © 2019 com.github.mvallim. All rights reserved.