net.sf.bus.spi
Class CompoundFilter

java.lang.Object
  |
  +--net.sf.bus.spi.CompoundFilter
All Implemented Interfaces:
Filter, org.apache.commons.collections.Predicate

public class CompoundFilter
extends java.lang.Object
implements Filter

A filter that evaluates the two given filters and returns true only if the two filters evaluate to true.

Version:
$Revision: 1.2 $
Author:
James Higginbotham

Constructor Summary
CompoundFilter(Filter filterOne, Filter filterTwo)
           
 
Method Summary
 boolean evaluate(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundFilter

public CompoundFilter(Filter filterOne,
                      Filter filterTwo)
Method Detail

evaluate

public boolean evaluate(java.lang.Object o)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate


This code may be freely distributed and modified under the terms of the GNU Lesser General Public Licence..