src/main/java/org/jboss/util/Classes.java
/**
    * Check if the given class is a primitive class or a primitive 
    * wrapper class.
    *
    * @param type    Class to check.
    * @return        True if the class is a primitive or primitive wrapper.
    */
Check if the given class is a primitive class or a primitive
wrapper class.

@param type    Class to check.
@return        True if the class is a primitive or primitive wrapper.
Check if the given class is a primitive class or a primitive wrapper class . @param type Class to check . @return True if the class is a primitive or primitive wrapper .
public static boolean isPrimitive(final Class type)
   {
      if (type.isPrimitive() || isPrimitiveWrapper(type))
      {
         return true;
      }
      return false;
   }
public static boolean isPrimitive ( final Class type ) { if ( type . isPrimitive ( ) || isPrimitiveWrapper ( type ) ) { return true ; } return false ; }
Check if the given class is a primitive class or a primitive
 wrapper class.
Check if the given class is a primitive class or a primitive wrapper class .