Return a value for the specified key. @webref floatdict:method @brief Return a value for the specified key
(String key)
| 349 | * @brief Return a value for the specified key |
| 350 | */ |
| 351 | public float get(String key) { |
| 352 | int index = index(key); |
| 353 | if (index == -1) { |
| 354 | throw new IllegalArgumentException("No key named '" + key + "'"); |
| 355 | } |
| 356 | return values[index]; |
| 357 | } |
| 358 | |
| 359 | |
| 360 | public float get(String key, float alternate) { |