@Override public void clear() { MutableQHashSeparateKVLongShortMapGO.this.clear(); }
@Override @SuppressWarnings("unchecked") public boolean contains(Object o) { try { Map.Entry<Long, Short> e = (Map.Entry<Long, Short>) o; return containsEntry(e.getKey(), e.getValue()); } catch (NullPointerException e) { return false; } catch (ClassCastException e) { return false; } }
@Override public boolean contains(short v) { return MutableQHashSeparateKVLongShortMapGO.this.containsValue(v); }
@Override public short putIfAbsent(long key, short value) { int index = insert(key, value); if (index < 0) { // key was absent return defaultValue(); } else { // key is present return values[index]; } }
@Override public short get(long key) { int index = index(key); if (index >= 0) { // key is present return values[index]; } else { // key is absent return defaultValue(); } }
long 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) { short newValue = (short) (defaultValue() + value); incrementModCount(); keys[firstRemoved] = key; vals[firstRemoved] = newValue; postRemovedSlotInsertHook(); return newValue; short newValue = (short) (defaultValue() + value); 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();
@Override public void clear() { doClear(); }
@Nonnull @Override public HashConfig hashConfig() { return MutableQHashSeparateKVLongShortMapGO.this.hashConfig(); }
public int hashCode() { return MutableQHashSeparateKVLongShortMapGO.this.hashCode(); }
@Override public double currentLoad() { return MutableQHashSeparateKVLongShortMapGO.this.currentLoad(); }
long 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;
@Override public short get(long 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 short putIfAbsent(long key, short value) { int index = insert(key, value); if (index < 0) { // key was absent return defaultValue(); } else { // key is present return values[index]; } }
@Override public void clear() { doClear(); }
@Nonnull @Override public HashConfig hashConfig() { return MutableQHashSeparateKVLongShortMapGO.this.hashConfig(); }
public int hashCode() { return MutableQHashSeparateKVLongShortMapGO.this.hashCode(); }
@Override public double currentLoad() { return MutableQHashSeparateKVLongShortMapGO.this.currentLoad(); }
long 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;