Package net.sf.basedb.util.filter
Class EqualsFilter<T>
- java.lang.Object
-
- net.sf.basedb.util.filter.EqualsFilter<T>
-
- All Implemented Interfaces:
Filter<T>
public class EqualsFilter<T> extends Object implements Filter<T>
A filter implementation that only accepts an object if it is equal (using Object.equals()) to a given object.- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2009-02-05 14:39:25 +0100 (to, 05 feb 2009) $
-
-
Constructor Summary
Constructors Constructor Description EqualsFilter(T object)
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
-
object
private final T object
-
-
Constructor Detail
-
EqualsFilter
public EqualsFilter(T object)
Create a new filter.- Parameters:
object
- The object use for equality check
-
-