|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.functors.NonePredicate
Predicate implementation that returns true if none of the predicates return true.
Constructor Summary | |
NonePredicate(Predicate[] predicates)
Constructor that performs no validation. |
Method Summary | |
boolean |
evaluate(Object object)
Evaluates the predicate returning false if any stored predicate returns false. |
static Predicate |
getInstance(Collection predicates)
Factory to create the predicate. |
static Predicate |
getInstance(Predicate[] predicates)
Factory to create the predicate. |
Predicate[] |
getPredicates()
Gets the predicates, do not modify the array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NonePredicate(Predicate[] predicates)
getInstance
if you want that.
predicates
- the predicates to check, not cloned, not nullMethod Detail |
public static Predicate getInstance(Predicate[] predicates)
predicates
- the predicates to check, cloned, not null
any
predicate
IllegalArgumentException
- if the predicates array is null
IllegalArgumentException
- if the predicates array has less than 2 elements
IllegalArgumentException
- if any predicate in the array is nullpublic static Predicate getInstance(Collection predicates)
predicates
- the predicates to check, cloned, not null
one
predicate
IllegalArgumentException
- if the predicates array is null
IllegalArgumentException
- if any predicate in the array is null
IllegalArgumentException
- if the predicates array has less than 2 elementspublic boolean evaluate(Object object)
evaluate
in interface Predicate
object
- the input object
public Predicate[] getPredicates()
getPredicates
in interface PredicateDecorator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |