net.sf.bus.spi
Class InstanceOfFilter

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

public class InstanceOfFilter
extends java.lang.Object
implements Filter

A filter that determines if the object being evaluated is an instance of the class being filtered for.

Version:
$Revision: 1.2 $
Author:
James Higginbotham

Constructor Summary
InstanceOfFilter(java.lang.Class filterClass)
           
 
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

InstanceOfFilter

public InstanceOfFilter(java.lang.Class filterClass)
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..