formats value . returns empty string if value is null . returns nan if value is not a number . return a formatted string if value is an instance of number , if not returns the value as a string . concode_field_sep String NAN concode_elem_sep String FORMAT_DATETIME concode_elem_sep DateFormatSymbols dateFormatSymbols concode_elem_sep ResourceBundle resourceBundle concode_elem_sep String INVALID_DATE concode_elem_sep String FORMAT_TIME concode_elem_sep DecimalFormat FORMAT_VALUE concode_elem_sep String EMPTY concode_elem_sep String FORMAT_DATE concode_field_sep String formatDate concode_elem_sep void init concode_elem_sep Date parseDateTime concode_elem_sep Date parseDate concode_elem_sep String formatDateTime concode_elem_sep String formatTime concode_elem_sep Date commonParsing concode_elem_sep Date parseTime concode_elem_sep String commonFormatting concode_elem_sep String formatPeriod
String function ( Object arg0 ) { if ( arg0 == null ) { return EMPTY ; } if ( arg0 instanceof Number ) { try { return FORMAT_VALUE . format ( arg0 ) ; } catch ( IllegalArgumentException loc0 ) { return NAN ; } } else { return String . valueOf ( arg0 ) ; } }