public static boolean isPrimitiveClassName ( String className ) { return className . equalsIgnoreCase ( "boolean" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "byte" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "char" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "short" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "int" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "long" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "float" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "double" ) //$NON-NLS-1$ || className . equalsIgnoreCase ( "string" ) ; //$NON-NLS-1$ }
Check if the name of class is primitive