public static String getPrimitiveDefault ( Class type ) { if ( type == Boolean . class ) { return "false" ; } if ( type == Character . class ) { return Character . toString ( ( char ) 0 ) ; } return "0" ; }
Gets the default value as String for the primitive types .