org.garret.heap
Class InstanceofSelector

java.lang.Object
  extended byorg.garret.heap.InstanceofSelector
All Implemented Interfaces:
Selector

public class InstanceofSelector
extends java.lang.Object
implements Selector

Select objects which are instances of specified class or interface


Constructor Summary
InstanceofSelector(java.lang.Class type)
           
 
Method Summary
 boolean select(java.lang.Object obj)
          Check if object matchs search criteria
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceofSelector

public InstanceofSelector(java.lang.Class type)
Method Detail

select

public boolean select(java.lang.Object obj)
Description copied from interface: Selector
Check if object matchs search criteria

Specified by:
select in interface Selector
Parameters:
obj - tests objects
Returns:
true if object is selected, false otherwise