|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.predicate.CompositePredicate<T>
T
- public abstract class CompositePredicate<T>
All component predicates have to be true.
Same functionality as AllPredicate in Apache Commons.
Field Summary | |
---|---|
protected Predicate<T>[] |
_predicates
|
Constructor Summary | |
---|---|
CompositePredicate(Predicate<T>[] predicates)
|
Method Summary | |
---|---|
abstract boolean |
evaluate(T input)
Checks if a binary predicate relation holds. |
Predicate<T>[] |
getPredicates()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Predicate<T>[] _predicates
Constructor Detail |
---|
public CompositePredicate(Predicate<T>[] predicates)
Method Detail |
---|
public Predicate<T>[] getPredicates()
public abstract boolean evaluate(T input)
Predicate
evaluate
in interface Predicate<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |