Package net.sf.basedb.util.filter
Class InstanceOfFilter<T>
- java.lang.Object
-
- net.sf.basedb.util.filter.InstanceOfFilter<T>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowSubclass
private Class<?>
clazz
-
Constructor Summary
Constructors Constructor Description InstanceOfFilter(Class<?> clazz, boolean allowSubclass)
Create a new filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(T object)
Evaluate if the given object should pass the filter or not.
-
-
-
Field Detail
-
clazz
private final Class<?> clazz
-
allowSubclass
private final boolean allowSubclass
-
-
Constructor Detail
-
InstanceOfFilter
public InstanceOfFilter(Class<?> clazz, boolean allowSubclass)
Create a new filter.- Parameters:
clazz
- The class to match againstallowSubclass
- If subclasses to the specified class should be accepted (TRUE) or denied (FALSE)
-
-