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