net.sf.basedb.util.filter
Class NotNullFilter<T>
java.lang.Object
net.sf.basedb.util.filter.NotNullFilter<T>
- All Implemented Interfaces:
- Filter<T>
public class NotNullFilter<T>
- extends Object
- implements Filter<T>
A filter implementation that rejects all null objects.
- Version:
- 2.9
- Author:
- Nicklas
- Last modified
- $Date: 2008-10-21 09:20:40 +0200 (Tue, 21 Oct 2008) $
Constructor Summary |
NotNullFilter(boolean pass)
Create a new filter. |
Method Summary |
boolean |
evaluate(T object)
Evaluate if the given object should pass the filter or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotNullFilter
public NotNullFilter(boolean pass)
- Create a new filter.
evaluate
public boolean evaluate(T object)
- Description copied from interface:
Filter
- Evaluate if the given object should pass the filter or not.
- Specified by:
evaluate
in interface Filter<T>
- Parameters:
object
- The object to evaluate
- Returns:
- TRUE if the object is not null, FALSE if it is null