コード例 #1
0
 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);
   }
 }
コード例 #2
0
  public static String formatIntegerAsString(Object attributeValue) {
    if (attributeValue == null) return "0";

    return (String) NUMBER_FORMATTER_WOUT_GRP_SYM.format(null, null, attributeValue);
  }