jfun.util.typing
Class TypeUtils

java.lang.Object
  extended by jfun.util.typing.TypeUtils

public class TypeUtils
extends java.lang.Object

General utility class for dealing with types.

Author:
Ben Yu Jan 3, 2006 2:45:06 PM

Constructor Summary
TypeUtils()
           
 
Method Summary
static java.lang.Class toObjectType(java.lang.Class c)
          Convert a primitive type to the corresponding wrapper type if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeUtils

public TypeUtils()
Method Detail

toObjectType

public static java.lang.Class toObjectType(java.lang.Class c)
Convert a primitive type to the corresponding wrapper type if any.

Parameters:
c - the type that could be primitive.
Returns:
the wrapper type.