int changeFree() { int mc = modCount(); int newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; IntArrays.replaceAllKeys(table, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
int changeFree() { int mc = modCount(); int newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; IntArrays.replaceAllKeys(table, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
int changeRemoved() { int mc = modCount(); int newRemoved = findNewFreeOrRemoved(); incrementModCount(); mc++; if (!noRemoved()) { IntArrays.replaceAllKeys(table, removedValue, newRemoved); } this.removedValue = newRemoved; if (mc != modCount()) throw new ConcurrentModificationException(); return newRemoved; }
int changeRemoved() { int mc = modCount(); int newRemoved = findNewFreeOrRemoved(); incrementModCount(); mc++; if (!noRemoved()) { IntArrays.replaceAllKeys(table, removedValue, newRemoved); } this.removedValue = newRemoved; if (mc != modCount()) throw new ConcurrentModificationException(); return newRemoved; }
void move(ParallelKVIntQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); table = hash.table(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }
void move(ParallelKVIntQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); table = hash.table(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }
void copy(ParallelKVIntQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); table = hash.table().clone(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }
void copy(ParallelKVIntQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); table = hash.table().clone(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }