JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.util
Class Classes

java.lang.Object
  |
  +--org.objectweb.jac.util.Classes

public class Classes
extends Object


Constructor Summary
Classes()
           
 
Method Summary
static Object[] convertPrimitiveArray(Object primitiveArray)
          Convert an array of a primitive type to an array of Object.
static Class getPrimitiveTypeWrapper(Class type)
          Return the java.lang type wrapped for a primitive type.
static String getPrimitiveTypeWrapper(String type)
          Return the java.lang type wrapped for a primitive type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Classes

public Classes()
Method Detail

getPrimitiveTypeWrapper

public static Class getPrimitiveTypeWrapper(Class type)
Return the java.lang type wrapped for a primitive type. For instance, the wrapper type for int is java.lang.Integer.

Parameters:
type - the type you want the wrapper type for.

getPrimitiveTypeWrapper

public static String getPrimitiveTypeWrapper(String type)
Return the java.lang type wrapped for a primitive type. For instance, the wrapper type for int is java.lang.Integer.

Parameters:
type - the type you want the wrapper type for.

convertPrimitiveArray

public static Object[] convertPrimitiveArray(Object primitiveArray)
Convert an array of a primitive type to an array of Object.


Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli