org.apache.ddlutils.util
Class MultiInstanceofPredicate

java.lang.Object
  extended by org.apache.ddlutils.util.MultiInstanceofPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class MultiInstanceofPredicate
extends Object
implements org.apache.commons.collections.Predicate

A predicate that tests whether the object is of one of the configured types.

Version:
$Revision: $

Constructor Summary
MultiInstanceofPredicate(Class[] typesToCheck)
          Creates a new predicate.
 
Method Summary
 boolean evaluate(Object obj)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiInstanceofPredicate

public MultiInstanceofPredicate(Class[] typesToCheck)
Creates a new predicate.

Parameters:
typesToCheck - The types to check
Method Detail

evaluate

public boolean evaluate(Object obj)

Specified by:
evaluate in interface org.apache.commons.collections.Predicate


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.