Defines an additional text representation of a numeric value. This will be used by getValue(), but not getText(). @param val The numeric value @param string The text string
(int val, String str)
| 141 | * @param string The text string |
| 142 | */ |
| 143 | public void |
| 144 | addAlias(int val, String str) { |
| 145 | check(val); |
| 146 | Integer value = toInteger(val); |
| 147 | str = sanitize(str); |
| 148 | strings.put(str, value); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Copies all mnemonics from one table into another. |