public boolean contains(Object key) { return contains(((Byte) key).byteValue()); }
byte changeFree() { int mc = modCount(); byte newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; ByteArrays.replaceAllKeys(table, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
public boolean contains(byte key) { return index(key) >= 0; }
private byte findNewFreeOrRemoved() { int mc = modCount(); int size = size(); if (size >= BYTE_CARDINALITY - 1) { if (newFree != free && index(newFree) < 0) { break searchForFree; if (mc != modCount()) throw new ConcurrentModificationException(); throw new AssertionError("Impossible state"); index(newFree) >= 0);
private byte findNewFreeOrRemoved() { int mc = modCount(); int size = size(); if (size >= BYTE_CARDINALITY - 1) { if (newFree != free && index(newFree) < 0) { break searchForFree; if (mc != modCount()) throw new ConcurrentModificationException(); throw new AssertionError("Impossible state"); index(newFree) >= 0);
byte changeFree() { int mc = modCount(); byte newFree = findNewFreeOrRemoved(); incrementModCount(); mc++; ByteArrays.replaceAllKeys(table, freeValue, newFree); this.freeValue = newFree; if (mc != modCount()) throw new ConcurrentModificationException(); return newFree; }
public boolean contains(Object key) { return contains(((Byte) key).byteValue()); }
public boolean contains(byte key) { return index(key) >= 0; }