2.17.2: 2011-06-17

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

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

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

A filter implementation that accpets an object only if at none of the parent filters accepts it.

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

Field Summary
private  Collection<? extends Filter<? super T>> parents
           
 
Constructor Summary
NoneOfFilter(Collection<? extends Filter<? super T>> parents)
          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
 

Field Detail

parents

private final Collection<? extends Filter<? super T>> parents
Constructor Detail

NoneOfFilter

public NoneOfFilter(Collection<? extends Filter<? super T>> parents)
Create a new filter.

Parameters:
parents - The parent filters
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 only if no parent filters returns TRUE, FALSE otherwise

2.17.2: 2011-06-17