mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/ReflectionsUtil.java
public static boolean isPrimitiveOrWrapper(final Class<?> type)
    {
        if (type.isPrimitive() 
                || type.equals(Boolean.class)
                || type.equals(Integer.class)
                || type.equals(Double.class)
                || type.equals(Float.class)
                || type.equals(Long.class)
                || type.equals(Short.class)
                || type.equals(Byte.class)
                || type.equals(Character.class)
                || type.equals(String.class)
                || type.isEnum())
        {
            return true;
        }
        
        return false;
    }
/**
     * Method used to determine whether or not a class is a primitive type. This check will return true for all wrapped
     * primitives, Strings, and Enumerations.
     * 
     * @param type
     *      The class type to be checked.
     * @return
     *      True if the class type is a primitive otherwise false is returned.
     */
Method used to determine whether or not a class is a primitive type. This check will return true for all wrapped
primitives, Strings, and Enumerations.

@param type
The class type to be checked.
@return
True if the class type is a primitive otherwise false is returned.
Method used to determine whether or not a class is a primitive type . This check will return true for all wrapped primitives Strings and Enumerations . @param type The class type to be checked . @return True if the class type is a primitive otherwise false is returned .
public static boolean isPrimitiveOrWrapper(final Class<?> type)
    {
        if (type.isPrimitive() 
                || type.equals(Boolean.class)
                || type.equals(Integer.class)
                || type.equals(Double.class)
                || type.equals(Float.class)
                || type.equals(Long.class)
                || type.equals(Short.class)
                || type.equals(Byte.class)
                || type.equals(Character.class)
                || type.equals(String.class)
                || type.isEnum())
        {
            return true;
        }
        return false;
    }
public static boolean isPrimitiveOrWrapper ( final Class < ? > type ) { if ( type . isPrimitive ( ) || type . equals ( Boolean . class ) || type . equals ( Integer . class ) || type . equals ( Double . class ) || type . equals ( Float . class ) || type . equals ( Long . class ) || type . equals ( Short . class ) || type . equals ( Byte . class ) || type . equals ( Character . class ) || type . equals ( String . class ) || type . isEnum ( ) ) { return true ; } return false ; }
Method used to determine whether or not a class is a primitive type.
Method used to determine whether or not a class is a primitive type .