@Override @Nonnull public HashCharFloatMapFactory withDefaultValue(float defaultValue) { if (defaultValue == 0.0f) return this; return new WithCustomDefaultValue(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound(), defaultValue); }
@Override @Nonnull public HashCharFloatMapFactory withDefaultValue(float defaultValue) { if (defaultValue == 0.0f) return this; return new WithCustomDefaultValue(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound(), defaultValue); }
@Override @Nonnull public HashCharFloatMapFactory withDefaultValue(float defaultValue) { if (defaultValue == 0.0f) return new QHashSeparateKVCharFloatMapFactoryImpl(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); if (defaultValue == this.defaultValue) return this; return new WithCustomDefaultValue(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound(), defaultValue); }
@Override HashCharFloatMapFactory thisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper) { return new WithCustomDefaultValue(hashConf, defaultExpectedSize, lower, upper, defaultValue); }
@Override HashCharFloatMapFactory qHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper) { return new QHashSeparateKVCharFloatMapFactoryImpl.WithCustomDefaultValue( hashConf, defaultExpectedSize, lower, upper, defaultValue); } @Override
@Override HashCharFloatMapFactory qHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper) { return new QHashSeparateKVCharFloatMapFactoryImpl.WithCustomDefaultValue( hashConf, defaultExpectedSize, lower, upper, defaultValue); } @Override
@Override HashCharFloatMapFactory qHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper) { return new QHashSeparateKVCharFloatMapFactoryImpl.WithCustomDefaultValue( hashConf, defaultExpectedSize, lower, upper, defaultValue); } @Override
@Override HashCharFloatMapFactory thisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper) { return new WithCustomDefaultValue(hashConf, defaultExpectedSize, lower, upper, defaultValue); }
@Override HashCharFloatMapFactory qHashLikeThisWith(HashConfig hashConf, int defaultExpectedSize, char lower, char upper) { return new QHashSeparateKVCharFloatMapFactoryImpl.WithCustomDefaultValue( hashConf, defaultExpectedSize, lower, upper, defaultValue); } @Override
@Override @Nonnull public HashCharFloatMapFactory withDefaultValue(float defaultValue) { if (defaultValue == 0.0f) return new QHashSeparateKVCharFloatMapFactoryImpl(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); if (defaultValue == this.defaultValue) return this; return new WithCustomDefaultValue(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound(), defaultValue); }