public boolean contains(Object key) { return contains(((Byte) key).byteValue()); }
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; }
public boolean contains(byte key) { return index(key) >= 0; }
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; }
private byte findNewFreeOrRemoved() { int mc = modCount(); int size = size(); if (size >= BYTE_CARDINALITY - if (newFree != free && newFree != removed && index(newFree) < 0) { break searchForFree; if (mc != modCount()) throw new ConcurrentModificationException(); throw new AssertionError("Impossible state"); index(newFree) >= 0);
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(); } }
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; }
private byte findNewFreeOrRemoved() { int mc = modCount(); int size = size(); if (size >= BYTE_CARDINALITY - if (newFree != free && newFree != removed && index(newFree) < 0) { break searchForFree; if (mc != modCount()) throw new ConcurrentModificationException(); throw new AssertionError("Impossible state"); index(newFree) >= 0);
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(); } }
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 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(); } }
public boolean contains(byte key) { return index(key) >= 0; }
public boolean contains(Object key) { return contains(((Byte) key).byteValue()); }
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(); } }