java.lang.ObjectAbstractFilter
OrFilter
final class OrFilter
Allow two filters to be chained together with a logical or operation.
Field Summary | |
---|---|
private static java.lang.String |
CVS_ID
|
private Filter |
left
Filter for left side of logical or |
private Filter |
right
Filter for right side of logical or |
Constructor Summary | |
---|---|
OrFilter(Filter left,
Filter right)
Match if either of the supplied filters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
boolean |
matches(java.lang.Object obj)
Check to see if the object matches a predefined set of rules. |
java.lang.String |
toString()
|
Methods inherited from class AbstractFilter |
---|
and, negate, or |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String CVS_ID
private Filter left
private Filter right
Constructor Detail |
---|
public OrFilter(Filter left, Filter right)
left
- left side of logical orright
- right side of logical or
java.lang.IllegalArgumentException
- if either supplied filter is nullMethod Detail |
---|
public boolean matches(java.lang.Object obj)
Filter
obj
- The object to verify.
true
if the object matches a predfined
set of rules.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object