public class ComposedRemoteFilter<T> extends java.lang.Object implements IAsyncFilter<T>, java.io.Serializable
IAsyncFilter.AlwaysFilter, IAsyncFilter.NeverFilter| Modifier and Type | Field and Description | 
|---|---|
| static int | ANDThe AND operator. | 
| protected IAsyncFilter[] | filtersThe filters | 
| static int | NOTThe NOT operator. | 
| protected int | operatorThe operator. | 
| static int | ORThe OR operator. | 
ALWAYS, NEVER| Constructor and Description | 
|---|
| ComposedRemoteFilter(IAsyncFilter<T>[] filters)Create a composed filter. | 
| ComposedRemoteFilter(IAsyncFilter<T>[] filters,
                    int operator)Create a composed filter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFilter(IAsyncFilter<T> filter)Add a filter. | 
| protected IFuture<java.lang.Boolean> | checkAndFilter(java.lang.Object object,
              IAsyncFilter[] filter,
              int i)Check and filter. | 
| protected IFuture<java.lang.Boolean> | checkOrFilter(java.lang.Object object,
             IAsyncFilter[] filter,
             int i)Check or filter. | 
| boolean | equals(java.lang.Object obj)Test if an object is equal to this. | 
| IFuture<java.lang.Boolean> | filter(java.lang.Object object)Match an object against the filter. | 
| IAsyncFilter[] | 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(IAsyncFilter<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 IAsyncFilter[] filters
protected int operator
public ComposedRemoteFilter(IAsyncFilter<T>[] filters)
filters - The filters.operator - The operator.public ComposedRemoteFilter(IAsyncFilter<T>[] filters, int operator)
filters - The filters.operator - The operator.public IFuture<java.lang.Boolean> filter(java.lang.Object object)
filter in interface IAsyncFilter<T>object - The object.java.lang.Exceptionprotected IFuture<java.lang.Boolean> checkAndFilter(java.lang.Object object, IAsyncFilter[] filter, int i)
protected IFuture<java.lang.Boolean> checkOrFilter(java.lang.Object object, IAsyncFilter[] filter, int i)
public IAsyncFilter[] getFilters()
public void setFilters(IAsyncFilter<T>[] filters)
filters - The filters to set.public void addFilter(IAsyncFilter<T> filter)
filter - The filter.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