Defines the text representation of a numeric value. @param val The numeric value @param string The text string
(int val, String str)
| 126 | * @param string The text string |
| 127 | */ |
| 128 | public void |
| 129 | add(int val, String str) { |
| 130 | check(val); |
| 131 | Integer value = toInteger(val); |
| 132 | str = sanitize(str); |
| 133 | strings.put(str, value); |
| 134 | values.put(value, str); |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Defines an additional text representation of a numeric value. This will |