Return a value for the specified key. @webref floatdict:method @webBrief Return a value for the specified key
(String key)
| 366 | * @webBrief Return a value for the specified key |
| 367 | */ |
| 368 | public float get(String key) { |
| 369 | int index = index(key); |
| 370 | if (index == -1) { |
| 371 | throw new IllegalArgumentException("No key named '" + key + "'"); |
| 372 | } |
| 373 | return values[index]; |
| 374 | } |
| 375 | |
| 376 | |
| 377 | public float get(String key, float alternate) { |