|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackboard.base.ListFilter
public abstract class ListFilter
Filters are used to get a sublist from a list using arbitrary, consumer
defined, selection criteria.
Filters may be chained together via an internal linked list.
Field Summary | |
---|---|
static ListFilter |
NOOP
A convenient filter implementation that allows any object to pass. |
Constructor Summary | |
---|---|
ListFilter()
|
Method Summary | |
---|---|
void |
addFilter(ListFilter newFilter)
Adds a filter to this linked list of filters. |
protected abstract boolean |
passesFilter(java.lang.Object listElement)
Returns true if the given element passes this filter's tests for inclusion in the sublist. |
boolean |
passesFilters(java.lang.Object listElement)
Returns true if the element passes all of the filters in this linked list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ListFilter NOOP
Constructor Detail |
---|
public ListFilter()
Method Detail |
---|
protected abstract boolean passesFilter(java.lang.Object listElement)
public boolean passesFilters(java.lang.Object listElement)
public void addFilter(ListFilter newFilter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |