@Test public void format() { assertThat(MoneyUtil.format(1111.111)).isEqualTo("1111.11"); assertThat(MoneyUtil.prettyFormat(1111.111)).isEqualTo("1,111.11"); assertThat(MoneyUtil.format(1111.111, "0.0")).isEqualTo("1111.1"); }
public static String format(BigDecimal number) { return format(number.doubleValue()); }
MoneyUtil { public static String format(BigDecimal number) { return format(number.doubleValue()); } }
MoneyUtil { public static String format(BigDecimal number) { return format(number.doubleValue()); }  }
MoneyUtil { public static String format(BigDecimal number) { return format(number.doubleValue()); }  static BigDecimal fen2yuan(BigDecimal num); static BigDecimal fen2yuan(long num); static BigDecimal fen2yuan(String num); static BigDecimal yuan2fen(String y); static BigDecimal yuan2fen(double y); static BigDecimal yuan2fen(BigDecimal y); static String format(BigDecimal number); static String format(double number); static String prettyFormat(BigDecimal number); static String prettyFormat(double number); static String format(BigDecimal number, String pattern); static String format(double number, String pattern); static BigDecimal parseString(String numberStr); static BigDecimal parsePrettyString(String numberStr); static BigDecimal parseString(String numberStr, String pattern); }
MoneyUtil { public static String format(BigDecimal number) { return format(number.doubleValue()); }  static BigDecimal fen2yuan(BigDecimal num); static BigDecimal fen2yuan(long num); static BigDecimal fen2yuan(String num); static BigDecimal yuan2fen(String y); static BigDecimal yuan2fen(double y); static BigDecimal yuan2fen(BigDecimal y); static String format(BigDecimal number); static String format(double number); static String prettyFormat(BigDecimal number); static String prettyFormat(double number); static String format(BigDecimal number, String pattern); static String format(double number, String pattern); static BigDecimal parseString(String numberStr); static BigDecimal parsePrettyString(String numberStr); static BigDecimal parseString(String numberStr, String pattern);  }