public NumberFormatter clone() { try { NumberFormatter numberFormatter = (NumberFormatter) super.clone(); numberFormatter.format = (DecimalFormat) this.format.clone(); return numberFormatter; } catch (CloneNotSupportedException e) { throw AWBusinessException.wrapUnhandledException(logger, e); } }
protected NumberFormatter newNumberFormatter(NumberFormat fmt) { NumberFormatter nff = super.newNumberFormatter(fmt); nff.setValueClass(Double.class); return nff; }
public static String formatIntegerAsString(Object attributeValue) { if (attributeValue == null) return "0"; return (String) NUMBER_FORMATTER_WOUT_GRP_SYM.format(null, null, attributeValue); }