@Override public void accept(short key, double value) { map.justPut(key, value); } });
@Override public void accept(short key, double value) { map.justPut(key, value); } });
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short removed = removedValue; short[] keys = set; long[] vals = values; if (noRemoved()) { for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } } else { for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free && key != removed) { m.justPut(key, vals[i]); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short removed = removedValue; short[] keys = set; long[] vals = values; if (noRemoved()) { for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } } else { for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free && key != removed) { m.justPut(key, vals[i]); } } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalShortDoubleMapOps m) { if (this.isEmpty()) return; int mc = modCount(); short free = freeValue; short[] keys = set; long[] vals = values; for (int i = keys.length - 1; i >= 0; i--) { short key; if ((key = keys[i]) != free) { m.justPut(key, vals[i]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
public static void putAll(final InternalShortDoubleMapOps map, Map<? extends Short, ? extends Double> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof ShortDoubleMap) { if (another instanceof InternalShortDoubleMapOps) { ((InternalShortDoubleMapOps) another).reversePutAllTo(map); } else { ((ShortDoubleMap) another).forEach(new ShortDoubleConsumer() { @Override public void accept(short key, double value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Short, ? extends Double> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalShortDoubleMapOps map, Map<? extends Short, ? extends Double> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof ShortDoubleMap) { if (another instanceof InternalShortDoubleMapOps) { ((InternalShortDoubleMapOps) another).reversePutAllTo(map); } else { ((ShortDoubleMap) another).forEach(new ShortDoubleConsumer() { @Override public void accept(short key, double value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Short, ? extends Double> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }