jess
Class Filter.ByClass

java.lang.Object
  extended byjess.Filter.ByClass
All Implemented Interfaces:
Filter
Enclosing class:
Filter

public static class Filter.ByClass
extends java.lang.Object
implements Filter

A Filter implementation that passes objects that are instances of a given class.


Nested Class Summary
 
Nested classes inherited from class jess.Filter
Filter.ByClass, Filter.ByModule
 
Constructor Summary
Filter.ByClass(java.lang.Class clazz)
          Constructor.
 
Method Summary
 boolean accept(java.lang.Object o)
          Returns true if the given object is an instance of the Class provided to the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter.ByClass

public Filter.ByClass(java.lang.Class clazz)
Constructor. The given class object's "isInstance()" method is used to filter objects.

Parameters:
clazz - the class to filter by
Method Detail

accept

public boolean accept(java.lang.Object o)
Returns true if the given object is an instance of the Class provided to the constructor.

Specified by:
accept in interface Filter
Parameters:
o - the object to test
Returns:
true if the object is an instance of this filter's class

© 2007 Sandia Corporation