(String format)
| 30 | private static Map<String, DecimalFormat> htFormats = new Hashtable<>(); |
| 31 | |
| 32 | public static DecimalFormat newDecimalFormat(String format) { |
| 33 | DecimalFormat f = htFormats.get(format); |
| 34 | if (f == null) { |
| 35 | f = new DecimalFormat(format); |
| 36 | htFormats.put(format, f); |
| 37 | } |
| 38 | return f; |
| 39 | } |
| 40 | |
| 41 | /** Parser for simple arithmetic expressions. */ |
| 42 | private static SuryonoParser parser = new SuryonoParser(0); // parser without variables |
no test coverage detected