public static void putAll(final InternalByteLongMapOps map, Map<? extends Byte, ? extends Long> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof ByteLongMap) { if (another instanceof InternalByteLongMapOps) { ((InternalByteLongMapOps) another).reversePutAllTo(map); } else { ((ByteLongMap) another).forEach(new ByteLongConsumer() { @Override public void accept(byte key, long value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Byte, ? extends Long> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalFloatFloatMapOps map, Map<? extends Float, ? extends Float> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof FloatFloatMap) { if (another instanceof InternalFloatFloatMapOps) { ((InternalFloatFloatMapOps) another).reversePutAllTo(map); } else { ((FloatFloatMap) another).forEach(new FloatFloatConsumer() { @Override public void accept(float key, float value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Float, ? extends Float> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalLongDoubleMapOps map, Map<? extends Long, ? extends Double> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof LongDoubleMap) { if (another instanceof InternalLongDoubleMapOps) { ((InternalLongDoubleMapOps) another).reversePutAllTo(map); } else { ((LongDoubleMap) another).forEach(new LongDoubleConsumer() { @Override public void accept(long key, double value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Long, ? extends Double> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalFloatLongMapOps map, Map<? extends Float, ? extends Long> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof FloatLongMap) { if (another instanceof InternalFloatLongMapOps) { ((InternalFloatLongMapOps) another).reversePutAllTo(map); } else { ((FloatLongMap) another).forEach(new FloatLongConsumer() { @Override public void accept(float key, long value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Float, ? extends Long> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static <V> void putAll(final InternalCharObjMapOps<V> map, Map<? extends Character, ? extends V> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof CharObjMap) { if (another instanceof InternalCharObjMapOps) { ((InternalCharObjMapOps) another).reversePutAllTo(map); } else { ((CharObjMap) another).forEach(new CharObjConsumer<V>() { @Override public void accept(char key, V value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Character, ? extends V> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalIntFloatMapOps map, Map<? extends Integer, ? extends Float> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof IntFloatMap) { if (another instanceof InternalIntFloatMapOps) { ((InternalIntFloatMapOps) another).reversePutAllTo(map); } else { ((IntFloatMap) another).forEach(new IntFloatConsumer() { @Override public void accept(int key, float value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Integer, ? extends Float> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static <V> void putAll(final InternalIntObjMapOps<V> map, Map<? extends Integer, ? extends V> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof IntObjMap) { if (another instanceof InternalIntObjMapOps) { ((InternalIntObjMapOps) another).reversePutAllTo(map); } else { ((IntObjMap) another).forEach(new IntObjConsumer<V>() { @Override public void accept(int key, V value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Integer, ? extends V> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalCharByteMapOps map, Map<? extends Character, ? extends Byte> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof CharByteMap) { if (another instanceof InternalCharByteMapOps) { ((InternalCharByteMapOps) another).reversePutAllTo(map); } else { ((CharByteMap) another).forEach(new CharByteConsumer() { @Override public void accept(char key, byte value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Character, ? extends Byte> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalLongLongMapOps map, Map<? extends Long, ? extends Long> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof LongLongMap) { if (another instanceof InternalLongLongMapOps) { ((InternalLongLongMapOps) another).reversePutAllTo(map); } else { ((LongLongMap) another).forEach(new LongLongConsumer() { @Override public void accept(long key, long value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Long, ? extends Long> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalLongShortMapOps map, Map<? extends Long, ? extends Short> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof LongShortMap) { if (another instanceof InternalLongShortMapOps) { ((InternalLongShortMapOps) another).reversePutAllTo(map); } else { ((LongShortMap) another).forEach(new LongShortConsumer() { @Override public void accept(long key, short value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Long, ? extends Short> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalFloatLongMapOps map, Map<? extends Float, ? extends Long> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof FloatLongMap) { if (another instanceof InternalFloatLongMapOps) { ((InternalFloatLongMapOps) another).reversePutAllTo(map); } else { ((FloatLongMap) another).forEach(new FloatLongConsumer() { @Override public void accept(float key, long value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Float, ? extends Long> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static <V> void putAll(final InternalByteObjMapOps<V> map, Map<? extends Byte, ? extends V> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof ByteObjMap) { if (another instanceof InternalByteObjMapOps) { ((InternalByteObjMapOps) another).reversePutAllTo(map); } else { ((ByteObjMap) another).forEach(new ByteObjConsumer<V>() { @Override public void accept(byte key, V value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Byte, ? extends V> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalDoubleByteMapOps map, Map<? extends Double, ? extends Byte> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof DoubleByteMap) { if (another instanceof InternalDoubleByteMapOps) { ((InternalDoubleByteMapOps) another).reversePutAllTo(map); } else { ((DoubleByteMap) another).forEach(new DoubleByteConsumer() { @Override public void accept(double key, byte value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Double, ? extends Byte> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalShortLongMapOps map, Map<? extends Short, ? extends Long> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof ShortLongMap) { if (another instanceof InternalShortLongMapOps) { ((InternalShortLongMapOps) another).reversePutAllTo(map); } else { ((ShortLongMap) another).forEach(new ShortLongConsumer() { @Override public void accept(short key, long value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Short, ? extends Long> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static <V> void putAll(final InternalCharObjMapOps<V> map, Map<? extends Character, ? extends V> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof CharObjMap) { if (another instanceof InternalCharObjMapOps) { ((InternalCharObjMapOps) another).reversePutAllTo(map); } else { ((CharObjMap) another).forEach(new CharObjConsumer<V>() { @Override public void accept(char key, V value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Character, ? extends V> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalDoubleShortMapOps map, Map<? extends Double, ? extends Short> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof DoubleShortMap) { if (another instanceof InternalDoubleShortMapOps) { ((InternalDoubleShortMapOps) another).reversePutAllTo(map); } else { ((DoubleShortMap) another).forEach(new DoubleShortConsumer() { @Override public void accept(double key, short value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Double, ? extends Short> 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()); } } }
public static void putAll(final InternalFloatFloatMapOps map, Map<? extends Float, ? extends Float> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof FloatFloatMap) { if (another instanceof InternalFloatFloatMapOps) { ((InternalFloatFloatMapOps) another).reversePutAllTo(map); } else { ((FloatFloatMap) another).forEach(new FloatFloatConsumer() { @Override public void accept(float key, float value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Float, ? extends Float> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static void putAll(final InternalShortIntMapOps map, Map<? extends Short, ? extends Integer> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof ShortIntMap) { if (another instanceof InternalShortIntMapOps) { ((InternalShortIntMapOps) another).reversePutAllTo(map); } else { ((ShortIntMap) another).forEach(new ShortIntConsumer() { @Override public void accept(short key, int value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Short, ? extends Integer> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }
public static /*<>*/ void putAll(final InternalByteShortMapOps/*<>*/ map, Map<? extends Byte, ? extends Short> another) { if (map == another) throw new IllegalArgumentException(); long maxPossibleSize = map.sizeAsLong() + Containers.sizeAsLong(another); map.ensureCapacity(maxPossibleSize); if (another instanceof ByteShortMap) { if (another instanceof InternalByteShortMapOps) { ((InternalByteShortMapOps) another).reversePutAllTo(map); } else { ((ByteShortMap) another).forEach(new /*f*/ByteShortConsumer/*<>*/() { @Override public void accept(byte key, short value) { map.justPut(key, value); } }); } } else { for (Map.Entry<? extends Byte, ? extends Short> e : another.entrySet()) { map.justPut(e.getKey(), e.getValue()); } } }