@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public double computeIfPresent(byte key, ByteDoubleToDoubleFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present long[] vals = values; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue; } else { // key is absent return defaultValue(); } }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte removed = removedValue; byte[] keys = set; long[] vals = values; if (noRemoved()) { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } } else { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free && key != removed) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteDoubleToDoubleFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte removed = removedValue; byte[] keys = set; long[] vals = values; if (noRemoved()) { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } } else { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free && key != removed) { vals[i] = Double.doubleToLongBits(function.applyAsDouble(key, Double.longBitsToDouble(vals[i]))); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
double newValue = remappingFunction.applyAsDouble(key, defaultValue()); incrementModCount(); keys[index] = key; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue;
double newValue = remappingFunction.applyAsDouble(key, defaultValue()); incrementModCount(); keys[index] = key; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue;
double newValue = remappingFunction.applyAsDouble(key, defaultValue()); incrementModCount(); keys[index] = key; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue;
double newValue = remappingFunction.applyAsDouble(key, defaultValue()); incrementModCount(); keys[index] = key; double newValue = remappingFunction.applyAsDouble(key, Double.longBitsToDouble(vals[index])); vals[index] = Double.doubleToLongBits(newValue); return newValue;