public final class OrPredicate extends Object implements org.apache.commons.collections.Predicate, Serializable
Predicate which returns the logical short-circuit
or of its operands.
This is mostly equivalent to the class of the same name in Jakarta Commons-Collections 3.0. This version exposes its constructor arguments through public accessor methods. The deserialization process in this version checks for null fields. No equivalent exists in version 2.1.
| Constructor and Description |
|---|
OrPredicate(org.apache.commons.collections.Predicate left,
org.apache.commons.collections.Predicate right)
Creates a new
OrPredicate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
boolean |
evaluate(Object object) |
org.apache.commons.collections.Predicate |
getLeftOperand()
Returns the left operand being used by this
OrPredicate. |
org.apache.commons.collections.Predicate |
getRightOperand()
Returns the right operand being used by this
OrPredicate. |
int |
hashCode() |
String |
toString() |
public OrPredicate(org.apache.commons.collections.Predicate left,
org.apache.commons.collections.Predicate right)
OrPredicate.public boolean evaluate(Object object)
evaluate in interface org.apache.commons.collections.Predicatepublic org.apache.commons.collections.Predicate getLeftOperand()
OrPredicate.public org.apache.commons.collections.Predicate getRightOperand()
OrPredicate.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.