|
|||||||||
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.OnePredicate<T>
T
- public class OnePredicate<T>
One component predicates have to be true.
Same functionality as OnePredicate in Apache Commons.
Field Summary |
---|
Fields inherited from class org.shapelogic.predicate.CompositePredicate |
---|
_predicates |
Constructor Summary | |
---|---|
OnePredicate(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 OnePredicate(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 |