public interface Selector
Selector interface.
This interface is implemented by all classes used to optimize the
content of a Set by applying search criteria
specified in the selector.
| Modifier and Type | Method and Description |
|---|---|
Set |
applyTo(Set set)
Removes all objects from the set that do not conform to the selector's
selection criteria.
|
Set applyTo(Set set) throws java.lang.ClassCastException, java.lang.NullPointerException
set - the set from which to remove objectssetjava.lang.NullPointerException - thrown if set is nulljava.lang.ClassCastException - thrown if the class of the set contents is not handled by this
selector