| Functor that returns true if the argument is an instance of given type.
NOTE: the generic parm T is not related to the class parameter. If there was
such a relationship (ie, if the class paramater given to the constructor was
declared-- if it were declared Class<T> rather than Class<?>,
then the compiler would require that the arguemnt be of the given type to
compile code that uses this functor, eliminating the need for the functor
in the first plase. Instead, the generic parm is the class of objects that
will be tested.
Copyright © 2004-2005 David A. Hall
author: David A. Hall |