public class ComposedRemoteFilter extends Object implements IRemoteFilter, Serializable
IRemoteFilter.AlwaysFilter, IRemoteFilter.NeverFilter
Modifier and Type | Field and Description |
---|---|
static int |
AND
The AND operator.
|
static int |
NOT
The NOT operator.
|
static int |
OR
The OR operator.
|
ALWAYS, NEVER
Constructor and Description |
---|
ComposedRemoteFilter(IRemoteFilter[] filters)
Create a composed filter.
|
ComposedRemoteFilter(IRemoteFilter[] filters,
int operator)
Create a composed filter.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(IRemoteFilter filter)
Add a filter.
|
boolean |
equals(Object obj)
Test if an object is equal to this.
|
IFuture<Boolean> |
filter(Object object)
Match an object against the filter.
|
IRemoteFilter[] |
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(IRemoteFilter[] 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 ComposedRemoteFilter(IRemoteFilter[] filters)
filters
- The filters.operator
- The operator.public ComposedRemoteFilter(IRemoteFilter[] filters, int operator)
filters
- The filters.operator
- The operator.public IFuture<Boolean> filter(Object object)
filter
in interface IRemoteFilter
object
- The object.Exception
public IRemoteFilter[] getFilters()
public void setFilters(IRemoteFilter[] filters)
filters
- The filters to set.public void addFilter(IRemoteFilter 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.