Exemple #1
0
 @Override
 public final String format(Culture culture, Long input) {
   return culture.formatNumber(input);
 }
 @Override
 public Double parse(Culture culture, String input) {
   return input == null || input.isEmpty()
       ? 0.0
       : culture.parseNumber(input).doubleValue() / 100.0;
 }
Exemple #3
0
 @Override
 public final Long parse(Culture culture, String input) {
   Number n = culture.parseNumber(input);
   return n == null ? 0L : n.longValue();
 }