byte changeFree() { int mc = modCount(); byte newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; ByteArrays.replaceAll(set, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
byte changeFree() { int mc = modCount(); byte newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; ByteArrays.replaceAll(set, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
byte changeRemoved() { int mc = modCount(); byte newRemoved = findNewFreeOrRemoved(); incrementModCount(); mc++; if (!noRemoved()) { ByteArrays.replaceAll(set, removedValue, newRemoved); } this.removedValue = newRemoved; if (mc != modCount()) throw new ConcurrentModificationException(); return newRemoved; }
byte changeRemoved() { int mc = modCount(); byte newRemoved = findNewFreeOrRemoved(); incrementModCount(); mc++; if (!noRemoved()) { ByteArrays.replaceAll(set, removedValue, newRemoved); } this.removedValue = newRemoved; if (mc != modCount()) throw new ConcurrentModificationException(); return newRemoved; }
void move(SeparateKVByteQHash 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(SeparateKVByteQHash 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(SeparateKVByteQHash 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(SeparateKVByteQHash hash) { super.copy(hash); freeValue = hash.freeValue(); if (hash.supportRemoved()) removedValue = hash.removedValue(); set = hash.keys().clone(); if (!hash.supportRemoved()) { removedValue = freeValue; removedValue = findNewFreeOrRemoved(); } }