M - the type to be filtered on
public interface Filterable<M>
Filterable interface defines the contract for an object that can accept one or more Filters.| Modifier and Type | Interface and Description |
|---|---|
static class |
Filterable.Mode |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Filter<M> filter, Filterable.Mode mode)
Add the given filter to this
Filterable object and combine it with any previously added filters according to the given mode. |
Filter<M> |
getFilter()
Get the current filter for this
Filterable object. |
boolean |
removeFilter(Filter<M> filter)
Remove the given filter from this
Filterable object. |
void |
setFilter(Filter<M> filter)
Set the filter on this
Filterable object. |
void addFilter(Filter<M> filter, Filterable.Mode mode)
Filterable object and combine it with any previously added filters according to the given mode.filter -mode -boolean removeFilter(Filter<M> filter)
Filterable object.filter - the filtertrue if thevoid setFilter(Filter<M> filter)
Filterable object. This will replace any previously set or added filters.filter - the new filter