short changeFree() { int mc = modCount(); short newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; ShortArrays.replaceAll(set, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
short changeFree() { int mc = modCount(); short newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; ShortArrays.replaceAll(set, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
short changeRemoved() { int mc = modCount(); short newRemoved = findNewFreeOrRemoved(); incrementModCount(); mc++; if (!noRemoved()) { ShortArrays.replaceAll(set, removedValue, newRemoved); } this.removedValue = newRemoved; if (mc != modCount()) throw new ConcurrentModificationException(); return newRemoved; }
short changeRemoved() { int mc = modCount(); short newRemoved = findNewFreeOrRemoved(); incrementModCount(); mc++; if (!noRemoved()) { ShortArrays.replaceAll(set, removedValue, newRemoved); } this.removedValue = newRemoved; if (mc != modCount()) throw new ConcurrentModificationException(); return newRemoved; }
void move(SeparateKVShortQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); set = hash.keys(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }
void move(SeparateKVShortQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); set = hash.keys(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }
void copy(SeparateKVShortQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); set = hash.keys().clone(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }
void copy(SeparateKVShortQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); set = hash.keys().clone(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }