ist.palcom.contingency.manager.utils
Class AbstractFilter<E>
java.lang.Object
ist.palcom.contingency.manager.utils.AbstractFilter<E>
- All Implemented Interfaces:
- IFilter<E>
- Direct Known Subclasses:
- FilterDeviceDecl, FilterLocalServiceDecl, FilterOtherDevices, FilterServiceDecl, FilterSingleServiceDecl, LocalServiceFilter, RemoteServiceFilter, SameDeviceFilter, SameDeviceTypeFilter, SameServiceTypeFilter
public abstract class AbstractFilter<E>
- extends java.lang.Object
- implements IFilter<E>
Implements the filter method of the IFilter interface to filter
out elements from the list satisfying some condition.
Can be subclassed to provide concrete filters with their
own condition.
|
Method Summary |
java.util.List<E> |
filter(java.util.List<E> items)
Returns elements from the given list that satisfy
the condition of this filter. |
abstract boolean |
satisfies(E item)
A condition to satisfy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFilter
public AbstractFilter()
filter
public final java.util.List<E> filter(java.util.List<E> items)
- Returns elements from the given list that satisfy
the condition of this filter.
- Specified by:
filter in interface IFilter<E>
satisfies
public abstract boolean satisfies(E item)
- A condition to satisfy.
- Specified by:
satisfies in interface IFilter<E>