Class OrFilter
java.lang.Object
AbstractFilter
OrFilter
- All Implemented Interfaces:
- Filter, java.io.Serializable
final class OrFilter
- extends AbstractFilter
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 |
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CVS_ID
private static final java.lang.String CVS_ID
- See Also:
- Constant Field Values
left
private Filter left
- Filter for left side of logical or
right
private Filter right
- Filter for right side of logical or
OrFilter
public OrFilter(Filter left,
Filter right)
- Match if either of the supplied filters.
- Parameters:
left
- left side of logical orright
- right side of logical or- Throws:
java.lang.IllegalArgumentException
- if either supplied filter is null
matches
public boolean matches(java.lang.Object obj)
- Description copied from interface:
Filter
- Check to see if the object matches a predefined set of rules.
- Parameters:
obj
- The object to verify. - Returns:
true
if the object matches a predfined set of rules.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object