public class ComposedFilter<T> extends Object implements IFilter<T>, 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()
Create a composed filter.
|
ComposedFilter(IFilter<T>[] filters)
Create a composed filter.
|
ComposedFilter(IFilter<T>[] filters,
int operator)
Create a composed filter.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(IFilter<T> filter)
Add a filter.
|
boolean |
equals(Object obj)
Test if an object is equal to this.
|
boolean |
filter(T object)
Match an object against the filter.
|
IFilter<T>[] |
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<T>[] 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()
filters
- The filters.operator
- The operator.public ComposedFilter(IFilter<T>[] filters)
filters
- The filters.operator
- The operator.public boolean filter(T object)
public void setFilters(IFilter<T>[] filters)
filters
- The filters to set.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 © 2013. All Rights Reserved.