diva.compat.util
Class OrFilter

java.lang.Object
  extended by diva.compat.util.OrFilter
All Implemented Interfaces:
Filter

public class OrFilter
extends Object
implements Filter

A composite filter which ORs two filters together.

Version:
$Revision: 1.1 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)
See Also:
Filter

Constructor Summary
OrFilter(Filter f1, Filter f2)
           
 
Method Summary
 boolean accept(Object o)
          Test if an object passes the filter, returning true if it does and false if it does not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrFilter

public OrFilter(Filter f1,
                Filter f2)
Method Detail

accept

public boolean accept(Object o)
Description copied from interface: Filter
Test if an object passes the filter, returning true if it does and false if it does not.

Specified by:
accept in interface Filter


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.