com.miginfocom.util.filter
Class CompositeFilter

java.lang.Object
  extended by com.miginfocom.util.filter.CompositeFilter
All Implemented Interfaces:
Filter, java.io.Serializable
Direct Known Subclasses:
AndFilter, NandFilter, OrFilter, XorFilter

public abstract class CompositeFilter
extends java.lang.Object
implements Filter

An filter that consists of two other filters.

See Also:
OrFilter, AndFilter, XorFilter, NandFilter, Serialized Form

Constructor Summary
protected CompositeFilter(java.lang.String name, Filter filter1, Filter filter2)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Filter getFilter1()
           
 Filter getFilter2()
           
 java.lang.String getName()
          Returns a human readable name for the filter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.miginfocom.util.filter.Filter
accept
 

Constructor Detail

CompositeFilter

protected CompositeFilter(java.lang.String name,
                          Filter filter1,
                          Filter filter2)
Constructor.

Parameters:
name - The name for the filter.
filter1 - The first filter. Not null.
filter2 - The second filter. Not null.
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Filter
Returns a human readable name for the filter.

Specified by:
getName in interface Filter
Returns:
A human readable name for the filter.

getFilter1

public final Filter getFilter1()

getFilter2

public final Filter getFilter2()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.