T - the type of object on which the filter workspublic abstract class AbstractFilter<T> extends Object implements ListFilter<T>
| Constructor and Description |
|---|
AbstractFilter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addObserver(Observer observer)
A filter can depend on some other processes.
|
abstract void |
beforeFilter()
This method is called once before the filtering is applied.
|
List<T> |
filter(List<T> list)
Deprecated.
ATTENTION: is not really deprecated just for compatibility reasons, will be not deprecated in release 2.0
|
abstract void |
removeObserver(Observer observer)
Remove an observer which is added by addObserver.
|
public List<T> filter(List<T> list) throws CouldNotPerformException
filter in interface Filter<T>filter in interface ListFilter<T>list - the list which is filteredCouldNotPerformException - if an error occurs while filteringpublic abstract void beforeFilter()
throws CouldNotPerformException
CouldNotPerformException - if an error occurs.public abstract void addObserver(Observer observer)
observer - An observer which is notified when the filter changes.public abstract void removeObserver(Observer observer)
observer - The observer to be removed.Copyright © 2015–2018 openbase.org. All rights reserved.