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