T - public class PredicateBuilder<T> extends Object implements EPredicate<T>
PredicateBuilder allows the creation of a predicate for a specified type.
The predicate is created by assembling predicates for the individual javabean properties of the type.
Expressive.Predicate#on(Class)| Modifier and Type | Class and Description |
|---|---|
class |
PredicateBuilder.PredicateUsing |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,PropertyDescriptor> |
getters |
protected LinkedHashMap<String,EPredicate<?>> |
propertyPredicates |
| Constructor and Description |
|---|
PredicateBuilder(Class<T> type) |
PredicateBuilder(Class<T> type,
boolean noCache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
pass(T input) |
protected void |
put(String property,
EPredicate<?> predicate) |
String |
toString() |
PredicateBuilder.PredicateUsing |
where(String property) |
protected Map<String,PropertyDescriptor> getters
protected LinkedHashMap<String,EPredicate<?>> propertyPredicates
protected void put(String property, EPredicate<?> predicate)
public PredicateBuilder.PredicateUsing where(String property)
public boolean pass(T input)
pass in interface EPredicate<T>Copyright © 2013 Atomic Leopard. All Rights Reserved.