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