2.17.2: 2011-06-17

net.sf.basedb.util.filter
Class InverseFilter<T>

java.lang.Object
  extended by net.sf.basedb.util.filter.InverseFilter<T>
All Implemented Interfaces:
Filter<T>

public class InverseFilter<T>
extends Object
implements Filter<T>

A filter implementation that negates the result of a parent filter.

Version:
2.9
Author:
Nicklas
Last modified
$Date: 2008-10-21 09:20:40 +0200 (Tue, 21 Oct 2008) $

Field Summary
private  Filter<? super T> parent
           
 
Constructor Summary
InverseFilter(Filter<? super T> parent)
           
 
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
 

Field Detail

parent

private final Filter<? super T> parent
Constructor Detail

InverseFilter

public InverseFilter(Filter<? super T> parent)
Method Detail

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 parent filter returns FALSE, and vice versa

2.17.2: 2011-06-17