/** * {@inheritDoc} */ @Override public void indexInsert(int index, int key, double value) { assert index < 0 : "The index must not point at an existing key."; index = ~index; if (((key) == 0)) { assert index == mask + 1; values[index] = value; hasEmptyKey = true; } else { assert ((keys[index]) == 0); if (assigned == resizeAt) { allocateThenInsertThenRehash(index, key, value); } else { keys[index] = key; values[index] = value; } assigned++; } }
allocateThenInsertThenRehash(slot, key, value); } else { keys[slot] = key;
/** * {@inheritDoc} */ @Override public void indexInsert(int index, int key, double value) { assert index < 0 : "The index must not point at an existing key."; index = ~index; if (((key) == 0)) { assert index == mask + 1; values[index] = value; hasEmptyKey = true; } else { assert ((keys[index]) == 0); if (assigned == resizeAt) { allocateThenInsertThenRehash(index, key, value); } else { keys[index] = key; values[index] = value; } assigned++; } }
allocateThenInsertThenRehash(slot, key, value); } else { keys[slot] = key;