Package org.spiderwiz.core
Class CatchAllFilter<T extends DataObject>
java.lang.Object
org.spiderwiz.core.Filter<T>
org.spiderwiz.core.CatchAllFilter<T>
- Type Parameters:
T
- the type of data objects maintained by this filter.
public class CatchAllFilter<T extends DataObject> extends Filter<T>
An implementation of
Filter
that catches all data objects of a specific type.-
Constructor Summary
Constructors Constructor Description CatchAllFilter(Class<T> type)
Constructs a filter for a specific data object type. -
Method Summary
Modifier and Type Method Description protected boolean
filterObject(T object)
Returnstrue
for every object.
-
Constructor Details
-
CatchAllFilter
Constructs a filter for a specific data object type.- Type Parameters:
T
- the type of data objects this filter applies to.- Parameters:
type
- the filter applies to objects that are instances of this class.- Throws:
NoSuchFieldException
- if class type does not contain a static field of name ObjectCode.IllegalAccessException
- if ObjectCode field is not public.
-
-
Method Details
-
filterObject
Returnstrue
for every object.- Specified by:
filterObject
in classFilter<T extends DataObject>
- Parameters:
object
- the object checked by the method.- Returns:
- true
-