net.obsearch.filter
Class FilterAnd<O extends OB>

java.lang.Object
  extended by net.obsearch.filter.FilterAnd<O>
All Implemented Interfaces:
Filter<O>

public final class FilterAnd<O extends OB>
extends Object
implements Filter<O>

FilterAnd returns true if and only if each if its filters return true.

Author:
Arnoldo Jose Muller Molina

Constructor Summary
FilterAnd()
           
 
Method Summary
 boolean accept(O dbObject, O query)
          Returning true implies that the object "dbObject" will be included in the result set.
 void addFilter(Filter<O> f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterAnd

public FilterAnd()
Method Detail

accept

public boolean accept(O dbObject,
                      O query)
Description copied from interface: Filter
Returning true implies that the object "dbObject" will be included in the result set.

Specified by:
accept in interface Filter<O extends OB>
Parameters:
dbObject - Object that is considered as a result.
query - Original query provided by the user.
Returns:
true if dbObject is to be included in the result set.

addFilter

public void addFilter(Filter<O> f)


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.