@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet(Iterable<Byte> elems1, Iterable<Byte> elems2, Iterable<Byte> elems3, Iterable<Byte> elems4, int expectedSize) { UpdatableQHashByteSetGO set = newUpdatableSet(expectedSize); addAll(set, elems1); addAll(set, elems2); addAll(set, elems3); addAll(set, elems4); return shrunk(set); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof HashByteSetFactory) { HashByteSetFactory factory = (HashByteSetFactory) obj; return commonEquals(factory) && keySpecialEquals(factory); } else { return false; } }
@Override public int hashCode() { return keySpecialHashCode(commonHashCode()); }
@Override public final HashByteSetFactory withDefaultExpectedSize(int defaultExpectedSize) { if (defaultExpectedSize == getDefaultExpectedSize()) return this; return thisWith(getHashConfig(), defaultExpectedSize , getLowerKeyDomainBound(), getUpperKeyDomainBound()); }
@Override public final HashByteSetFactory withHashConfig(@Nonnull HashConfig hashConf) { if (configIsSuitableForMutableLHash(hashConf)) return lHashLikeThisWith(hashConf, getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); return qHashLikeThisWith(hashConf, getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); }
@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet( Consumer<com.koloboke.function.ByteConsumer> elementsSupplier) { return this.newUpdatableSet(elementsSupplier, getDefaultExpectedSize()); }
@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet(Iterable<Byte> elements) { return this.newUpdatableSet(elements, sizeOr(elements, getDefaultExpectedSize())); }
@Override @Nonnull public MutableQHashByteSetGO newMutableSet() { return this.newMutableSet(getDefaultExpectedSize()); }
@Override public String toString() { return "HashByteSetFactory[" + commonString() + keySpecialString() + "]"; }
@Override public final HashByteSetFactory withDefaultExpectedSize(int defaultExpectedSize) { if (defaultExpectedSize == getDefaultExpectedSize()) return this; return thisWith(getHashConfig(), defaultExpectedSize , getLowerKeyDomainBound(), getUpperKeyDomainBound()); }
@Override public final HashByteSetFactory withHashConfig(@Nonnull HashConfig hashConf) { if (configIsSuitableForMutableLHash(hashConf)) return lHashLikeThisWith(hashConf, getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); return qHashLikeThisWith(hashConf, getDefaultExpectedSize() , getLowerKeyDomainBound(), getUpperKeyDomainBound()); }
@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet() { return this.newUpdatableSet(getDefaultExpectedSize()); } @Override
@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet(Iterable<Byte> elements) { return this.newUpdatableSet(elements, sizeOr(elements, getDefaultExpectedSize())); }
@Override @Nonnull public MutableQHashByteSetGO newMutableSet() { return this.newMutableSet(getDefaultExpectedSize()); }
@Override public String toString() { return "HashByteSetFactory[" + commonString() + keySpecialString() + "]"; }
@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet(Iterable<Byte> elems1, Iterable<Byte> elems2, Iterable<Byte> elems3, int expectedSize) { UpdatableQHashByteSetGO set = newUpdatableSet(expectedSize); addAll(set, elems1); addAll(set, elems2); addAll(set, elems3); return shrunk(set); }
@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet(Iterator<Byte> elements) { return this.newUpdatableSet(elements, getDefaultExpectedSize()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof HashByteSetFactory) { HashByteSetFactory factory = (HashByteSetFactory) obj; return commonEquals(factory) && keySpecialEquals(factory); } else { return false; } }
@Override public int hashCode() { return keySpecialHashCode(commonHashCode()); }
@Override @Nonnull public UpdatableQHashByteSetGO newUpdatableSet(Iterable<Byte> elems1, Iterable<Byte> elems2, Iterable<Byte> elems3, int expectedSize) { UpdatableQHashByteSetGO set = newUpdatableSet(expectedSize); addAll(set, elems1); addAll(set, elems2); addAll(set, elems3); return shrunk(set); }