@Override public void clear() { MutableQHashSeparateKVShortByteMapGO.this.clear(); }
@Override public boolean contains(byte v) { return MutableQHashSeparateKVShortByteMapGO.this.containsValue(v); }
@Override public double currentLoad() { return MutableQHashSeparateKVShortByteMapGO.this.currentLoad(); }
@Override public byte get(short key) { int index = index(key); if (index >= 0) { // key is present return values[index]; } else { // key is absent return defaultValue(); } }
@Override public byte putIfAbsent(short key, byte value) { int index = insert(key, value); if (index < 0) { // key was absent return defaultValue(); } else { // key is present return values[index]; } }
short removed = removedValue; if (key == (free = freeValue)) { free = changeFree(); } else if (key == removed) { removed = changeRemoved(); int firstRemoved; if (cur != removed) { if (noRemoved()) { int bIndex = index, fIndex = index, step = 1; while (true) { incrementModCount(); keys[firstRemoved] = key; vals[firstRemoved] = newValue; postRemovedSlotInsertHook(); return newValue; incrementModCount(); keys[index] = key; vals[index] = newValue; postFreeSlotInsertHook(); return newValue;
if (cur == free) { return defaultValue(); } else { int bIndex = index, fIndex = index, step = 1; } else if (cur == free) { return defaultValue(); } else if (cur == free) { return defaultValue(); incrementModCount(); keys[index] = removed; postRemoveHook(); return val; } else { return defaultValue();
@Nonnull @Override public HashConfig hashConfig() { return MutableQHashSeparateKVShortByteMapGO.this.hashConfig(); }
@Override @SuppressWarnings("unchecked") public boolean contains(Object o) { try { Map.Entry<Short, Byte> e = (Map.Entry<Short, Byte>) o; return containsEntry(e.getKey(), e.getValue()); } catch (NullPointerException e) { return false; } catch (ClassCastException e) { return false; } }
@Override public void clear() { doClear(); }
public int hashCode() { return MutableQHashSeparateKVShortByteMapGO.this.hashCode(); }
short removed = removedValue; if (key == (free = freeValue)) { free = changeFree(); } else if (key == removed) { removed = changeRemoved(); int firstRemoved; if (cur != removed) { if (noRemoved()) { int bIndex = index, fIndex = index, step = 1; while (true) { byte newValue = (byte) (defaultValue() + value); incrementModCount(); keys[firstRemoved] = key; vals[firstRemoved] = newValue; postRemovedSlotInsertHook(); return newValue; byte newValue = (byte) (defaultValue() + value); incrementModCount(); keys[index] = key; vals[index] = newValue; postFreeSlotInsertHook(); return newValue;
@Override public byte get(short key) { int index = index(key); if (index >= 0) { // key is present return values[index]; } else { // key is absent return defaultValue(); } }
if (cur == free) { return defaultValue(); } else { int bIndex = index, fIndex = index, step = 1; } else if (cur == free) { return defaultValue(); } else if (cur == free) { return defaultValue(); incrementModCount(); keys[index] = removed; postRemoveHook(); return val; } else { return defaultValue();
@Override public byte putIfAbsent(short key, byte value) { int index = insert(key, value); if (index < 0) { // key was absent return defaultValue(); } else { // key is present return values[index]; } }
@Nonnull @Override public HashConfig hashConfig() { return MutableQHashSeparateKVShortByteMapGO.this.hashConfig(); }
@Override @SuppressWarnings("unchecked") public boolean contains(Object o) { try { Map.Entry<Short, Byte> e = (Map.Entry<Short, Byte>) o; return containsEntry(e.getKey(), e.getValue()); } catch (NullPointerException e) { return false; } catch (ClassCastException e) { return false; } }
@Override public void clear() { doClear(); }
public int hashCode() { return MutableQHashSeparateKVShortByteMapGO.this.hashCode(); }
short removed = removedValue; if (key == (free = freeValue)) { free = changeFree(); } else if (key == removed) { removed = changeRemoved(); int firstRemoved; if (cur != removed) { if (noRemoved()) { int bIndex = index, fIndex = index, step = 1; while (true) { byte newValue = (byte) (defaultValue() + value); incrementModCount(); keys[firstRemoved] = key; vals[firstRemoved] = newValue; postRemovedSlotInsertHook(); return newValue; byte newValue = (byte) (defaultValue() + value); incrementModCount(); keys[index] = key; vals[index] = newValue; postFreeSlotInsertHook(); return newValue;