Gets the text mnemonic corresponding to a numeric value. @param val The numeric value @return The corresponding text mnemonic.
(int val)
| 170 | * @return The corresponding text mnemonic. |
| 171 | */ |
| 172 | public String |
| 173 | getText(int val) { |
| 174 | check(val); |
| 175 | String str = (String) values.get(toInteger(val)); |
| 176 | if (str != null) |
| 177 | return str; |
| 178 | str = Integer.toString(val); |
| 179 | if (prefix != null) |
| 180 | return prefix + str; |
| 181 | return str; |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Gets the numeric value corresponding to a text mnemonic. |