org.tm4j.utils.predicates
Class InstanceOf

java.lang.Object
  extended byorg.tm4j.utils.predicates.InstanceOf
All Implemented Interfaces:
uk.co.jezuk.mango.BinaryPredicate

public class InstanceOf
extends java.lang.Object
implements uk.co.jezuk.mango.BinaryPredicate

A Mango binary predicate that tests if the first argument is an instance of the second argument. The second argument must be an instance of java.lang.Class.

Author:
Kal Ahmed (kal@techquila.com)

Constructor Summary
InstanceOf()
           
 
Method Summary
 boolean test(java.lang.Object inst, java.lang.Object klass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceOf

public InstanceOf()
Method Detail

test

public boolean test(java.lang.Object inst,
                    java.lang.Object klass)
Specified by:
test in interface uk.co.jezuk.mango.BinaryPredicate