(int newCapacity)
| 360 | |
| 361 | // Expands to exactly the desired capacity. |
| 362 | private void expand(int newCapacity) { |
| 363 | Object[] newNamesAndValues = new Object[newCapacity]; |
| 364 | if (!isEmpty()) { |
| 365 | System.arraycopy(namesAndValues, 0, newNamesAndValues, 0, len()); |
| 366 | } |
| 367 | namesAndValues = newNamesAndValues; |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * Removes the first occurrence of {@code value} for {@code key}. |
no test coverage detected