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