Class SubtypeFilter
java.lang.Object
net.sf.basedb.clients.web.extensions.list.SubtypeFilter
- All Implemented Interfaces:
Filter<Annotatable>
Filter implementation that accept (annotatable) items of a given subtype.
It can also accept Item lists with a matching
ItemList.getItemSubtype()
(or without subtype if the member type matches).- Since:
- 3.16
- Author:
- nicklas
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(Annotatable item) Evaluate if the given object should pass the filter or not.
-
Field Details
-
itemType
-
subtype
-
-
Constructor Details
-
SubtypeFilter
-
-
Method Details
-
evaluate
Description copied from interface:Filter
Evaluate if the given object should pass the filter or not.- Specified by:
evaluate
in interfaceFilter<Annotatable>
- Parameters:
item
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-