@Override public String toString() { return "HashDoubleDoubleMapFactory[" + commonString() + keySpecialString() + ",defaultValue=" + getDefaultValue() + "]"; }
@Override @Nonnull public UpdatableQHashParallelKVDoubleDoubleMapGO newUpdatableMap( Consumer<com.koloboke.function.DoubleDoubleConsumer> entriesSupplier) { return this.newUpdatableMap(entriesSupplier, getDefaultExpectedSize()); }
@Override public final HashDoubleDoubleMapFactory withDefaultExpectedSize(int defaultExpectedSize) { if (defaultExpectedSize == getDefaultExpectedSize()) return this; return thisWith(getHashConfig(), defaultExpectedSize ); }
@Override public int hashCode() { int hashCode = keySpecialHashCode(commonHashCode()); hashCode = hashCode * 31 + Primitives.hashCode(getDefaultValue()); return hashCode; }
@Override public final HashDoubleDoubleMapFactory withHashConfig(@Nonnull HashConfig hashConf) { if (configIsSuitableForMutableLHash(hashConf)) return lHashLikeThisWith(hashConf, getDefaultExpectedSize() ); return qHashLikeThisWith(hashConf, getDefaultExpectedSize() ); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof HashDoubleDoubleMapFactory) { HashDoubleDoubleMapFactory factory = (HashDoubleDoubleMapFactory) obj; return commonEquals(factory) && keySpecialEquals(factory) && // boxing to treat NaNs correctly ((Double) getDefaultValue()).equals(factory.getDefaultValue()) ; } else { return false; } }
@Override @Nonnull public MutableQHashParallelKVDoubleDoubleMapGO newMutableMap() { return this.newMutableMap(getDefaultExpectedSize()); }
@Override public int hashCode() { int hashCode = keySpecialHashCode(commonHashCode()); hashCode = hashCode * 31 + Primitives.hashCode(getDefaultValue()); return hashCode; }
@Override public final HashDoubleDoubleMapFactory withHashConfig(@Nonnull HashConfig hashConf) { if (configIsSuitableForMutableLHash(hashConf)) return lHashLikeThisWith(hashConf, getDefaultExpectedSize() ); return qHashLikeThisWith(hashConf, getDefaultExpectedSize() ); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof HashDoubleDoubleMapFactory) { HashDoubleDoubleMapFactory factory = (HashDoubleDoubleMapFactory) obj; return commonEquals(factory) && keySpecialEquals(factory) && // boxing to treat NaNs correctly ((Double) getDefaultValue()).equals(factory.getDefaultValue()) ; } else { return false; } }
@Override @Nonnull public MutableQHashParallelKVDoubleDoubleMapGO newMutableMap() { return this.newMutableMap(getDefaultExpectedSize()); }
@Override @Nonnull public UpdatableQHashParallelKVDoubleDoubleMapGO newUpdatableMap() { return this.newUpdatableMap(getDefaultExpectedSize()); } @Override
@Override public String toString() { return "HashDoubleDoubleMapFactory[" + commonString() + keySpecialString() + ",defaultValue=" + getDefaultValue() + "]"; }
@Override public final HashDoubleDoubleMapFactory withDefaultExpectedSize(int defaultExpectedSize) { if (defaultExpectedSize == getDefaultExpectedSize()) return this; return thisWith(getHashConfig(), defaultExpectedSize ); }
@Override @Nonnull public UpdatableQHashParallelKVDoubleDoubleMapGO newUpdatableMap( Consumer<com.koloboke.function.DoubleDoubleConsumer> entriesSupplier) { return this.newUpdatableMap(entriesSupplier, getDefaultExpectedSize()); }
@Override @Nonnull public UpdatableQHashParallelKVDoubleDoubleMapGO newUpdatableMap() { return this.newUpdatableMap(getDefaultExpectedSize()); } @Override
@Override @Nonnull public UpdatableQHashParallelKVDoubleDoubleMapGO newUpdatableMap( Iterable<Double> keys, Iterable<Double> values) { int expectedSize = keys instanceof Collection ? ((Collection) keys).size() : getDefaultExpectedSize(); return this.newUpdatableMap(keys, values, expectedSize); }
@Override @Nonnull public UpdatableQHashParallelKVDoubleDoubleMapGO newUpdatableMap( Iterable<Double> keys, Iterable<Double> values) { int expectedSize = keys instanceof Collection ? ((Collection) keys).size() : getDefaultExpectedSize(); return this.newUpdatableMap(keys, values, expectedSize); }