public class ComposedFilter extends Object implements IFilter, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
AND
The AND operator.
|
static int |
NOT
The NOT operator.
|
static int |
OR
The OR operator.
|
Constructor and Description |
---|
ComposedFilter(IFilter[] filters)
Create a composed filter.
|
ComposedFilter(IFilter[] filters,
int operator)
Create a composed filter.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(IFilter filter)
Add a filter.
|
boolean |
equals(Object obj)
Test if an object is equal to this.
|
boolean |
filter(Object object)
Match an object against the filter.
|
IFilter[] |
getFilters()
Get the filters.
|
int |
getOperator()
Get the operator.
|
int |
hashCode()
Get the hashcode.
|
static String |
operatorToString(int operator)
Create a string representation of the operator.
|
void |
setFilters(IFilter[] filters)
Set the filters.
|
void |
setOperator(int operator)
Set the operator.
|
String |
toString()
Create a string representation of this filter.
|
public static final int AND
public static final int OR
public static final int NOT
public ComposedFilter(IFilter[] filters)
filters
- The filters.operator
- The operator.public ComposedFilter(IFilter[] filters, int operator)
filters
- The filters.operator
- The operator.public boolean filter(Object object)
public IFilter[] getFilters()
public void setFilters(IFilter[] filters)
filters
- The filters to set.public void addFilter(IFilter filter)
filter
- The filter.public int getOperator()
public void setOperator(int operator)
operator
- The operator to set.public boolean equals(Object obj)
public static String operatorToString(int operator)
Copyright © 2012. All Rights Reserved.