(int index, int key, int value)
| 74 | } |
| 75 | |
| 76 | public void putAt(int index, int key, int value) { |
| 77 | if (index < 0) { |
| 78 | values[-index - 1] = value; |
| 79 | } else { |
| 80 | keys[index] = key; |
| 81 | values[index] = value; |
| 82 | if (--free == 0) { |
| 83 | rehash(); |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | public int valueAt(int index) { |
| 89 | return index < 0 ? values[-index - 1] : noEntryValue; |