@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public int computeIfPresent(byte key, ByteIntToIntFunction remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue; } else { // key is absent return defaultValue(); } }
@Override public void replaceAll(ByteIntToIntFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; int[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteIntToIntFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; int[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteIntToIntFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; int[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteIntToIntFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; int[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteIntToIntFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; int[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteIntToIntFunction function) { if (function == null) throw new java.lang.NullPointerException(); if (this.isEmpty()) return; int mc = modCount(); byte free = freeValue; byte[] keys = set; int[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteIntToIntFunction 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; int[] vals = values; if (noRemoved()) { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } } else { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free && key != removed) { vals[i] = function.applyAsInt(key, vals[i]); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void replaceAll(ByteIntToIntFunction 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; int[] vals = values; if (noRemoved()) { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free) { vals[i] = function.applyAsInt(key, vals[i]); } } } else { for (int i = keys.length - 1; i >= 0; i--) { byte key; if ((key = keys[i]) != free && key != removed) { vals[i] = function.applyAsInt(key, vals[i]); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
int newValue = remappingFunction.applyAsInt(key, defaultValue()); incrementModCount(); keys[index] = key; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue;
int newValue = remappingFunction.applyAsInt(key, defaultValue()); incrementModCount(); keys[index] = key; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue;
int newValue = remappingFunction.applyAsInt(key, defaultValue()); incrementModCount(); keys[index] = key; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue;
int newValue = remappingFunction.applyAsInt(key, defaultValue()); incrementModCount(); keys[index] = key; int newValue = remappingFunction.applyAsInt(key, vals[index]); vals[index] = newValue; return newValue;