@Override public void accept(double key, long value) { map.justPut(key, value); } });
@Override public void accept(double key, long value) { map.justPut(key, value); } });
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
@Override public void reversePutAllTo(InternalDoubleLongMapOps m) { if (this.isEmpty()) return; int mc = modCount(); long[] tab = table; for (int i = tab.length - 2; i >= 0; i -= 2) { long key; if ((key = tab[i]) < FREE_BITS) { m.justPut(key, tab[i + 1]); } } if (mc != modCount()) throw new java.util.ConcurrentModificationException(); }
public static void putAll(final InternalDoubleLongMapOps map, Map<? extends Double, ? extends Long> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof DoubleLongMap) { if (another instanceof InternalDoubleLongMapOps) { ((InternalDoubleLongMapOps) another).reversePutAllTo(map); } else { ((DoubleLongMap) another).forEach(new DoubleLongConsumer() { @Override public void accept(double key, long value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Double, ? extends Long> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalDoubleLongMapOps map, Map<? extends Double, ? extends Long> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof DoubleLongMap) { if (another instanceof InternalDoubleLongMapOps) { ((InternalDoubleLongMapOps) another).reversePutAllTo(map); } else { ((DoubleLongMap) another).forEach(new DoubleLongConsumer() { @Override public void accept(double key, long value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Double, ? extends Long> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }