public abstract class BinaryLogicalFilter extends AbstractFilter
Constructor and Description |
---|
BinaryLogicalFilter() |
Modifier and Type | Method and Description |
---|---|
BinaryLogicalFilter |
append(Filter query)
Add a query to this logical operation.
|
BinaryLogicalFilter |
appendAll(Collection<Filter> subQueries) |
StringBuffer |
encode(StringBuffer buff)
Encodes the filter to a StringBuffer.
|
boolean |
equals(Object o)
All filters must implement equals.
|
protected abstract String |
getLogicalOperator()
Implement this in subclass to return the logical operator, for example
"&".
|
int |
hashCode()
All filters must implement hashCode.
|
encode, toString
public StringBuffer encode(StringBuffer buff)
Filter
buff
- The StringBuffer to encode the filter toprotected abstract String getLogicalOperator()
public boolean equals(Object o)
Filter
public int hashCode()
Filter
hashCode
in interface Filter
hashCode
in class Object
Object.hashCode()
public final BinaryLogicalFilter append(Filter query)
query
- the query to add.public final BinaryLogicalFilter appendAll(Collection<Filter> subQueries)