Class OneOfFilter<T>

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

public class OneOfFilter<T> extends Object implements Filter<T>
A filter implementation that accpets an object if at least one parent filters accepts it.
Version:
2.9
Author:
Nicklas
Last modified
$Date: 2008-10-21 09:20:40 +0200 (ti, 21 okt 2008) $
  • Field Details

  • Constructor Details

    • OneOfFilter

      public OneOfFilter(Collection<? extends Filter<? super T>> parents)
      Create a new filter.
      Parameters:
      parents - The parent filters
  • Method Details

    • 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 at least one parent filters returns TRUE, FALSE otherwise