|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.linkedin.data.it.OrPredicate
public class OrPredicate
Evaluate if any of the Predicate
's is true.
If there are no Predicate
's to evaluate, then
this predicate returns false. Furthermore, the
predicates are evaluated in the order they are provided,
once a predicate evaluates to true, the remaining
predicates are not evaluated, i.e. the semantics
is similar to ||
.
Constructor Summary | |
---|---|
OrPredicate(java.util.Collection<? extends Predicate> predicates)
Constructor. |
|
OrPredicate(Predicate... predicates)
Constructor. |
Method Summary | |
---|---|
boolean |
evaluate(DataElement element)
Evaluate the predicate to test an DataElement . |
java.util.List<Predicate> |
getChildPredicates()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrPredicate(Predicate... predicates)
predicates
- to evaluate, it should not be modified
once passed to the constructor.public OrPredicate(java.util.Collection<? extends Predicate> predicates)
predicates
- to evaluate, it should not be modified
once passed to the constructor.Method Detail |
---|
public boolean evaluate(DataElement element)
Predicate
DataElement
.
evaluate
in interface Predicate
element
- provides the DataElement
to evaluate.
DataElement
satisfies the predicate.public java.util.List<Predicate> getChildPredicates()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |