com.koloboke.collect.impl.hash.QHashSeparateKVDoubleCharMapFactoryGO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of koloboke-impl-jdk8 Show documentation
Show all versions of koloboke-impl-jdk8 Show documentation
Carefully designed and efficient extension of the Java Collections Framework with primitive specializations and more, built for Java 8 (Implementation)
The newest version!
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.koloboke.collect.impl.hash;
import com.koloboke.collect.*;
import com.koloboke.collect.hash.*;
import com.koloboke.collect.impl.*;
import com.koloboke.collect.map.hash.HashDoubleCharMapFactory;
import java.util.function.Consumer;
import java.util.function.Predicate;
import com.koloboke.collect.map.hash.HashDoubleCharMap;
import javax.annotation.Nonnull;
import java.util.*;
import static com.koloboke.collect.impl.Containers.sizeAsInt;
import static com.koloboke.collect.impl.hash.LHashCapacities.configIsSuitableForMutableLHash;
public abstract class QHashSeparateKVDoubleCharMapFactoryGO
extends QHashSeparateKVDoubleCharMapFactorySO {
QHashSeparateKVDoubleCharMapFactoryGO(HashConfig hashConf, int defaultExpectedSize
) {
super(hashConf, defaultExpectedSize);
}
abstract HashDoubleCharMapFactory thisWith(HashConfig hashConf, int defaultExpectedSize);
abstract HashDoubleCharMapFactory lHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize);
abstract HashDoubleCharMapFactory qHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize);
@Override
public final HashDoubleCharMapFactory withHashConfig(@Nonnull HashConfig hashConf) {
if (configIsSuitableForMutableLHash(hashConf))
return lHashLikeThisWith(hashConf, getDefaultExpectedSize()
);
return qHashLikeThisWith(hashConf, getDefaultExpectedSize()
);
}
@Override
public final HashDoubleCharMapFactory withDefaultExpectedSize(int defaultExpectedSize) {
if (defaultExpectedSize == getDefaultExpectedSize())
return this;
return thisWith(getHashConfig(), defaultExpectedSize
);
}
@Override
public String toString() {
return "HashDoubleCharMapFactory[" + commonString() + keySpecialString() +
",defaultValue=" + getDefaultValue() +
"]";
}
@Override
public int hashCode() {
int hashCode = keySpecialHashCode(commonHashCode());
hashCode = hashCode * 31 + Primitives.hashCode(getDefaultValue());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj instanceof HashDoubleCharMapFactory) {
HashDoubleCharMapFactory factory = (HashDoubleCharMapFactory) obj;
return commonEquals(factory) && keySpecialEquals(factory) &&
// boxing to treat NaNs correctly
((Character) getDefaultValue()).equals(factory.getDefaultValue())
;
} else {
return false;
}
}
@Override
public char getDefaultValue() {
return (char) 0;
}
private UpdatableQHashSeparateKVDoubleCharMapGO shrunk(
UpdatableQHashSeparateKVDoubleCharMapGO map) {
Predicate shrinkCondition;
if ((shrinkCondition = hashConf.getShrinkCondition()) != null) {
if (shrinkCondition.test(map))
map.shrink();
}
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap() {
return this.newUpdatableMap(getDefaultExpectedSize());
}
@Override
@Nonnull
public MutableQHashSeparateKVDoubleCharMapGO newMutableMap() {
return this.newMutableMap(getDefaultExpectedSize());
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map) {
return shrunk(super.newUpdatableMap(map));
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2) {
long expectedSize = (long) map1.size();
expectedSize += (long) map2.size();
return this.newUpdatableMap(map1, map2, sizeAsInt(expectedSize));
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2,
Map map3) {
long expectedSize = (long) map1.size();
expectedSize += (long) map2.size();
expectedSize += (long) map3.size();
return this.newUpdatableMap(map1, map2, map3, sizeAsInt(expectedSize));
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, Map map4) {
long expectedSize = (long) map1.size();
expectedSize += (long) map2.size();
expectedSize += (long) map3.size();
expectedSize += (long) map4.size();
return this.newUpdatableMap(map1, map2, map3, map4, sizeAsInt(expectedSize));
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, Map map4,
Map map5) {
long expectedSize = (long) map1.size();
expectedSize += (long) map2.size();
expectedSize += (long) map3.size();
expectedSize += (long) map4.size();
expectedSize += (long) map5.size();
return this.newUpdatableMap(map1, map2, map3, map4, map5, sizeAsInt(expectedSize));
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2,
int expectedSize) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, int expectedSize) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
map.putAll(map3);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, Map map4,
int expectedSize) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
map.putAll(map3);
map.putAll(map4);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, Map map4,
Map map5, int expectedSize) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
map.putAll(map3);
map.putAll(map4);
map.putAll(map5);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Consumer entriesSupplier) {
return this.newUpdatableMap(entriesSupplier, getDefaultExpectedSize());
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Consumer entriesSupplier,
int expectedSize) {
final UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
entriesSupplier.accept(new com.koloboke.function.DoubleCharConsumer() {
@Override
public void accept(double k, char v) {
map.put(k, v);
}
});
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
double[] keys, char[] values) {
return this.newUpdatableMap(keys, values, keys.length);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
double[] keys, char[] values, int expectedSize) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
int keysLen = keys.length;
if (keysLen != values.length)
throw new IllegalArgumentException("keys and values arrays must have the same size");
for (int i = 0; i < keys.length; i++) {
map.put(keys[i], values[i]);
}
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Double[] keys, Character[] values) {
return this.newUpdatableMap(keys, values, keys.length);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Double[] keys, Character[] values, int expectedSize) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
int keysLen = keys.length;
if (keysLen != values.length)
throw new IllegalArgumentException("keys and values arrays must have the same size");
for (int i = 0; i < keys.length; i++) {
map.put(keys[i], values[i]);
}
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Iterable keys, Iterable values) {
int expectedSize = keys instanceof Collection ? ((Collection) keys).size() :
getDefaultExpectedSize();
return this.newUpdatableMap(keys, values, expectedSize);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMap(
Iterable keys, Iterable values, int expectedSize) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(expectedSize);
Iterator keysIt = keys.iterator();
Iterator valuesIt = values.iterator();
try {
while (keysIt.hasNext()) {
map.put(keysIt.next(), valuesIt.next());
}
return shrunk(map);
} catch (NoSuchElementException e) {
throw new IllegalArgumentException(
"keys and values iterables must have the same size", e);
}
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMapOf(
double k1, char v1) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(1);
map.put(k1, v1);
return map;
}
@Override
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMapOf(
double k1, char v1, double k2, char v2) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(2);
map.put(k1, v1);
map.put(k2, v2);
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMapOf(
double k1, char v1, double k2, char v2,
double k3, char v3) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(3);
map.put(k1, v1);
map.put(k2, v2);
map.put(k3, v3);
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMapOf(
double k1, char v1, double k2, char v2,
double k3, char v3, double k4, char v4) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(4);
map.put(k1, v1);
map.put(k2, v2);
map.put(k3, v3);
map.put(k4, v4);
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVDoubleCharMapGO newUpdatableMapOf(
double k1, char v1, double k2, char v2,
double k3, char v3, double k4, char v4,
double k5, char v5) {
UpdatableQHashSeparateKVDoubleCharMapGO map = newUpdatableMap(5);
map.put(k1, v1);
map.put(k2, v2);
map.put(k3, v3);
map.put(k4, v4);
map.put(k5, v5);
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2, Map map3, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(
Consumer entriesSupplier
, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(entriesSupplier, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(double[] keys,
char[] values, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(
Double[] keys, Character[] values, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Iterable keys,
Iterable values, int expectedSize) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(
Map map) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2, Map map3) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5) {
MutableQHashSeparateKVDoubleCharMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(
Consumer entriesSupplier
) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(entriesSupplier));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(double[] keys,
char[] values) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(
Double[] keys, Character[] values) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMap(Iterable keys,
Iterable values) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMapOf(double k1, char v1) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMapOf(double k1, char v1,
double k2, char v2) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMapOf(double k1, char v1,
double k2, char v2, double k3, char v3) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMapOf(double k1, char v1,
double k2, char v2, double k3, char v3,
double k4, char v4) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newMutableMapOf(double k1, char v1,
double k2, char v2, double k3, char v3,
double k4, char v4, double k5, char v5) {
MutableQHashSeparateKVDoubleCharMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2, Map map3, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5, expectedSize));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(
Consumer entriesSupplier
, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(entriesSupplier, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(double[] keys,
char[] values, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(
Double[] keys, Character[] values, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Iterable keys,
Iterable values, int expectedSize) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(
Map map) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2, Map map3) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5) {
ImmutableQHashSeparateKVDoubleCharMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5));
return res;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(
Consumer entriesSupplier
) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(entriesSupplier));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(double[] keys,
char[] values) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(
Double[] keys, Character[] values) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMap(Iterable keys,
Iterable values) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMapOf(double k1, char v1) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMapOf(double k1, char v1,
double k2, char v2) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMapOf(double k1, char v1,
double k2, char v2, double k3, char v3) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMapOf(double k1, char v1,
double k2, char v2, double k3, char v3,
double k4, char v4) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4));
return map;
}
@Override
@Nonnull
public HashDoubleCharMap newImmutableMapOf(double k1, char v1,
double k2, char v2, double k3, char v3,
double k4, char v4, double k5, char v5) {
ImmutableQHashSeparateKVDoubleCharMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5));
return map;
}
}