@Override @Nonnull public HashByteByteMapFactory withDefaultValue(byte defaultValue) { if (defaultValue == (byte) 0) return new QHashParallelKVByteByteMapFactoryImpl(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); if (defaultValue == this.defaultValue) return this; return new WithCustomDefaultValue(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound(), defaultValue); }
@Override @Nonnull public HashByteByteMapFactory withDefaultValue(byte defaultValue) { if (defaultValue == (byte) 0) return new QHashParallelKVByteByteMapFactoryImpl(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); if (defaultValue == this.defaultValue) return this; return new WithCustomDefaultValue(getHashConfig(), getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound(), defaultValue); }