public class ComposedFilter<T> extends java.lang.Object implements IFilter<T>, java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static int | ANDThe AND operator. | 
| protected IFilter<T>[] | filtersThe filters | 
| static int | NOTThe NOT operator. | 
| protected int | operatorThe operator. | 
| static int | ORThe 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(java.lang.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 java.lang.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. | 
| java.lang.String | toString()Create a string representation of this filter. | 
public static final int AND
public static final int OR
public static final int NOT
protected int operator
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 int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static java.lang.String operatorToString(int operator)
public java.lang.String toString()
toString in class java.lang.Object