com.koloboke.collect.impl.hash.QHashSeparateKVCharFloatMapFactoryGO 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.HashCharFloatMapFactory;
import java.util.function.Consumer;
import java.util.function.Predicate;
import com.koloboke.collect.map.hash.HashCharFloatMap;
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 QHashSeparateKVCharFloatMapFactoryGO
extends QHashSeparateKVCharFloatMapFactorySO {
QHashSeparateKVCharFloatMapFactoryGO(HashConfig hashConf, int defaultExpectedSize
, char lower, char upper) {
super(hashConf, defaultExpectedSize, lower, upper);
}
abstract HashCharFloatMapFactory thisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper);
abstract HashCharFloatMapFactory lHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper);
abstract HashCharFloatMapFactory qHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper);
@Override
public final HashCharFloatMapFactory withHashConfig(@Nonnull HashConfig hashConf) {
if (configIsSuitableForMutableLHash(hashConf))
return lHashLikeThisWith(hashConf, getDefaultExpectedSize()
, getLowerKeyDomainBound(), getUpperKeyDomainBound());
return qHashLikeThisWith(hashConf, getDefaultExpectedSize()
, getLowerKeyDomainBound(), getUpperKeyDomainBound());
}
@Override
public final HashCharFloatMapFactory withDefaultExpectedSize(int defaultExpectedSize) {
if (defaultExpectedSize == getDefaultExpectedSize())
return this;
return thisWith(getHashConfig(), defaultExpectedSize
, getLowerKeyDomainBound(), getUpperKeyDomainBound());
}
final HashCharFloatMapFactory withDomain(char lower, char upper) {
if (lower == getLowerKeyDomainBound() && upper == getUpperKeyDomainBound())
return this;
return thisWith(getHashConfig(), getDefaultExpectedSize(), lower, upper);
}
@Override
public final HashCharFloatMapFactory withKeysDomain(char lower, char upper) {
if (lower > upper)
throw new IllegalArgumentException("minPossibleKey shouldn't be greater " +
"than maxPossibleKey");
return withDomain(lower, upper);
}
@Override
public final HashCharFloatMapFactory withKeysDomainComplement(char lower, char upper) {
if (lower > upper)
throw new IllegalArgumentException("minImpossibleKey shouldn't be greater " +
"than maxImpossibleKey");
return withDomain((char) (upper + 1), (char) (lower - 1));
}
@Override
public String toString() {
return "HashCharFloatMapFactory[" + 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 HashCharFloatMapFactory) {
HashCharFloatMapFactory factory = (HashCharFloatMapFactory) obj;
return commonEquals(factory) && keySpecialEquals(factory) &&
// boxing to treat NaNs correctly
((Float) getDefaultValue()).equals(factory.getDefaultValue())
;
} else {
return false;
}
}
@Override
public float getDefaultValue() {
return 0.0f;
}
private UpdatableQHashSeparateKVCharFloatMapGO shrunk(
UpdatableQHashSeparateKVCharFloatMapGO map) {
Predicate shrinkCondition;
if ((shrinkCondition = hashConf.getShrinkCondition()) != null) {
if (shrinkCondition.test(map))
map.shrink();
}
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap() {
return this.newUpdatableMap(getDefaultExpectedSize());
}
@Override
@Nonnull
public MutableQHashSeparateKVCharFloatMapGO newMutableMap() {
return this.newMutableMap(getDefaultExpectedSize());
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Map map) {
return shrunk(super.newUpdatableMap(map));
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Map map1, Map map2) {
long expectedSize = (long) map1.size();
expectedSize += (long) map2.size();
return this.newUpdatableMap(map1, map2, sizeAsInt(expectedSize));
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO 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 UpdatableQHashSeparateKVCharFloatMapGO 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 UpdatableQHashSeparateKVCharFloatMapGO 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 UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Map map1, Map map2,
int expectedSize) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, int expectedSize) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
map.putAll(map3);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, Map map4,
int expectedSize) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
map.putAll(map3);
map.putAll(map4);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Map map1, Map map2,
Map map3, Map map4,
Map map5, int expectedSize) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(expectedSize);
map.putAll(map1);
map.putAll(map2);
map.putAll(map3);
map.putAll(map4);
map.putAll(map5);
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Consumer entriesSupplier) {
return this.newUpdatableMap(entriesSupplier, getDefaultExpectedSize());
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Consumer entriesSupplier,
int expectedSize) {
final UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(expectedSize);
entriesSupplier.accept(new com.koloboke.function.CharFloatConsumer() {
@Override
public void accept(char k, float v) {
map.put(k, v);
}
});
return shrunk(map);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
char[] keys, float[] values) {
return this.newUpdatableMap(keys, values, keys.length);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
char[] keys, float[] values, int expectedSize) {
UpdatableQHashSeparateKVCharFloatMapGO 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 UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Character[] keys, Float[] values) {
return this.newUpdatableMap(keys, values, keys.length);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Character[] keys, Float[] values, int expectedSize) {
UpdatableQHashSeparateKVCharFloatMapGO 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 UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Iterable keys, Iterable values) {
int expectedSize = keys instanceof Collection ? ((Collection) keys).size() :
getDefaultExpectedSize();
return this.newUpdatableMap(keys, values, expectedSize);
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMap(
Iterable keys, Iterable values, int expectedSize) {
UpdatableQHashSeparateKVCharFloatMapGO 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 UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMapOf(
char k1, float v1) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(1);
map.put(k1, v1);
return map;
}
@Override
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMapOf(
char k1, float v1, char k2, float v2) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(2);
map.put(k1, v1);
map.put(k2, v2);
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMapOf(
char k1, float v1, char k2, float v2,
char k3, float v3) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(3);
map.put(k1, v1);
map.put(k2, v2);
map.put(k3, v3);
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMapOf(
char k1, float v1, char k2, float v2,
char k3, float v3, char k4, float v4) {
UpdatableQHashSeparateKVCharFloatMapGO map = newUpdatableMap(4);
map.put(k1, v1);
map.put(k2, v2);
map.put(k3, v3);
map.put(k4, v4);
return map;
}
@Override
@Nonnull
public UpdatableQHashSeparateKVCharFloatMapGO newUpdatableMapOf(
char k1, float v1, char k2, float v2,
char k3, float v3, char k4, float v4,
char k5, float v5) {
UpdatableQHashSeparateKVCharFloatMapGO 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 HashCharFloatMap newMutableMap(Map map1,
Map map2, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Map map1,
Map map2, Map map3, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(
Consumer entriesSupplier
, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(entriesSupplier, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(char[] keys,
float[] values, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(
Character[] keys, Float[] values, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Iterable keys,
Iterable values, int expectedSize) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(
Map map) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Map map1,
Map map2) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Map map1,
Map map2, Map map3) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5) {
MutableQHashSeparateKVCharFloatMapGO res = uninitializedMutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(
Consumer entriesSupplier
) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(entriesSupplier));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(char[] keys,
float[] values) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(
Character[] keys, Float[] values) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMap(Iterable keys,
Iterable values) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMapOf(char k1, float v1) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMapOf(char k1, float v1,
char k2, float v2) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMapOf(char k1, float v1,
char k2, float v2, char k3, float v3) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMapOf(char k1, float v1,
char k2, float v2, char k3, float v3,
char k4, float v4) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newMutableMapOf(char k1, float v1,
char k2, float v2, char k3, float v3,
char k4, float v4, char k5, float v5) {
MutableQHashSeparateKVCharFloatMapGO map = uninitializedMutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2, Map map3, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5, expectedSize));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(
Consumer entriesSupplier
, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(entriesSupplier, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(char[] keys,
float[] values, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(
Character[] keys, Float[] values, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Iterable keys,
Iterable values, int expectedSize) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values, expectedSize));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(
Map map) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2, Map map3) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Map map1,
Map map2, Map map3,
Map map4, Map map5) {
ImmutableQHashSeparateKVCharFloatMapGO res = uninitializedImmutableMap();
res.move(this.newUpdatableMap(map1, map2, map3, map4, map5));
return res;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(
Consumer entriesSupplier
) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(entriesSupplier));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(char[] keys,
float[] values) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(
Character[] keys, Float[] values) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMap(Iterable keys,
Iterable values) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMap(keys, values));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMapOf(char k1, float v1) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMapOf(char k1, float v1,
char k2, float v2) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMapOf(char k1, float v1,
char k2, float v2, char k3, float v3) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMapOf(char k1, float v1,
char k2, float v2, char k3, float v3,
char k4, float v4) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4));
return map;
}
@Override
@Nonnull
public HashCharFloatMap newImmutableMapOf(char k1, float v1,
char k2, float v2, char k3, float v3,
char k4, float v4, char k5, float v5) {
ImmutableQHashSeparateKVCharFloatMapGO map = uninitializedImmutableMap();
map.move(this.newUpdatableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5));
return map;
}
}