@webref doubledict:method @brief Add to a value
(String key, double amount)
| 418 | * @brief Add to a value |
| 419 | */ |
| 420 | public void add(String key, double amount) { |
| 421 | int index = index(key); |
| 422 | if (index == -1) { |
| 423 | create(key, amount); |
| 424 | } else { |
| 425 | values[index] += amount; |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | |
| 430 | /** |