@Override public boolean containsEntry(double key, Object value) { long k = Double.doubleToLongBits(key); int index = index(k); if (index >= 0) { // key is present return nullableValueEquals(values[index], (V) value); } else { // key is absent return false; } }
@Override public boolean containsEntry(long key, Object value) { int index = index(key); if (index >= 0) { // key is present return nullableValueEquals(values[index], (V) value); } else { // key is absent return false; } }
@Override public boolean containsEntry(long key, Object value) { int index = index(key); if (index >= 0) { // key is present return nullableValueEquals(values[index], (V) value); } else { // key is absent return false; } }
@Override public boolean containsEntry(double key, Object value) { long k = Double.doubleToLongBits(key); int index = index(k); if (index >= 0) { // key is present return nullableValueEquals(values[index], (V) value); } else { // key is absent return false; } }
@Override public boolean replace(double key, V oldValue, V newValue) { long k = Double.doubleToLongBits(key); int index = index(k); if (index >= 0) { // key is present V[] vals = values; if (nullableValueEquals(vals[index], (V) oldValue)) { vals[index] = newValue; return true; } else { return false; } } else { // key is absent return false; } }
@Override public boolean replace(double key, V oldValue, V newValue) { long k = Double.doubleToLongBits(key); int index = index(k); if (index >= 0) { // key is present V[] vals = values; if (nullableValueEquals(vals[index], (V) oldValue)) { vals[index] = newValue; return true; } else { return false; } } else { // key is absent return false; } }
if (nullableValueEquals(vals[index], (V) value)) { incrementModCount(); keys[index] = REMOVED_BITS;
if (nullableValueEquals(vals[index], (V) value)) { incrementModCount(); keys[index] = REMOVED_BITS;