Plexus v0.13.1

com.phoenixst.collections
Class AllPredicate

java.lang.Object
  extended by com.phoenixst.collections.AllPredicate
All Implemented Interfaces:
Serializable, org.apache.commons.collections.Predicate

public final class AllPredicate
extends Object
implements org.apache.commons.collections.Predicate, Serializable

A Predicate which returns the logical short-circuit and of its operands.

This is mostly equivalent to the class of the same name in Jakarta Commons-Collections 3.0. The deserialization process in this version checks for null fields. No equivalent exists in version 2.1.

Since:
1.0
Version:
$Revision: 1.12 $
Author:
Ray A. Conner
See Also:
Serialized Form

Constructor Summary
AllPredicate(Collection predicates)
          Creates a new AllPredicate.
AllPredicate(org.apache.commons.collections.Predicate[] predicates)
          Creates a new AllPredicate.
 
Method Summary
 boolean equals(Object object)
           
 boolean evaluate(Object object)
           
 List getOperands()
          Returns an unmodifiable List of the argument Predicates being used by this AllPredicate.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllPredicate

public AllPredicate(org.apache.commons.collections.Predicate[] predicates)
Creates a new AllPredicate.


AllPredicate

public AllPredicate(Collection predicates)
Creates a new AllPredicate.

Method Detail

evaluate

public boolean evaluate(Object object)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate

getOperands

public List getOperands()
Returns an unmodifiable List of the argument Predicates being used by this AllPredicate.


equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.