| java.lang.Object org.apache.commons.collections.functors.AndPredicate
AndPredicate | final public class AndPredicate implements Predicate,PredicateDecorator,Serializable(Code) | | Predicate implementation that returns true if both the predicates return true.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
AndPredicate | public AndPredicate(Predicate predicate1, Predicate predicate2)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: predicate1 - the first predicate to check, not null Parameters: predicate2 - the second predicate to check, not null |
evaluate | public boolean evaluate(Object object)(Code) | | Evaluates the predicate returning true if both predicates return true.
Parameters: object - the input object true if both decorated predicates return true |
getInstance | public static Predicate getInstance(Predicate predicate1, Predicate predicate2)(Code) | | Factory to create the predicate.
Parameters: predicate1 - the first predicate to check, not null Parameters: predicate2 - the second predicate to check, not null the and predicate throws: IllegalArgumentException - if either predicate is null |
getPredicates | public Predicate[] getPredicates()(Code) | | Gets the two predicates being decorated as an array.
the predicates since: Commons Collections 3.1 |
|
|