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