public interface HashObjSetFactory<E> extends ObjSetFactory<E,HashObjSetFactory<E>>, ObjHashFactory<HashObjSetFactory<E>>
HashObjSet
s.HashObjSet
,
HashObjSets.getDefaultFactory()
,
@KolobokeSet
Modifier and Type | Method and Description |
---|---|
Equivalence<E> |
getEquivalence()
Returns the equivalence to which equivalence of the sets
constructed by this factory is set.
|
<E2 extends E> |
newImmutableSet(Consumer<Consumer<E2>> elementsSupplier)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
<E2 extends E> |
newImmutableSet(Consumer<Consumer<E2>> elementsSupplier,
int expectedSize)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
<E2 extends E> |
newImmutableSet(E2[] elements)
Constructs a new immutable set of elements from the given array.
|
<E2 extends E> |
newImmutableSet(E2[] elements,
int expectedSize)
Constructs a new immutable set of elements from the given array.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elements)
Constructs a new immutable set containing the elements in the specified iterable.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elements,
int expectedSize)
Constructs a new immutable set containing the elements in the specified iterable.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
Iterable<? extends E2> elems5)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
Iterable<? extends E2> elems5,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newImmutableSet(Iterator<? extends E2> elements)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
<E2 extends E> |
newImmutableSet(Iterator<? extends E2> elements,
int expectedSize)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
<E2 extends E> |
newImmutableSetOf(E2 e1)
Constructs a new immutable singleton set of the given element.
|
<E2 extends E> |
newImmutableSetOf(E2 e1,
E2 e2)
Constructs a new immutable set of the two specified elements.
|
<E2 extends E> |
newImmutableSetOf(E2 e1,
E2 e2,
E2 e3)
Constructs a new immutable set of the three specified elements.
|
<E2 extends E> |
newImmutableSetOf(E2 e1,
E2 e2,
E2 e3,
E2 e4)
Constructs a new immutable set of the four specified elements.
|
<E2 extends E> |
newImmutableSetOf(E2 e1,
E2 e2,
E2 e3,
E2 e4,
E2 e5,
E2... restElements)
Constructs a new immutable set of the specified elements.
|
<E2 extends E> |
newMutableSet()
Constructs a new empty mutable set of the default
expected size.
|
<E2 extends E> |
newMutableSet(Consumer<Consumer<E2>> elementsSupplier)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
<E2 extends E> |
newMutableSet(Consumer<Consumer<E2>> elementsSupplier,
int expectedSize)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
<E2 extends E> |
newMutableSet(E2[] elements)
Constructs a new mutable set of elements from the given array.
|
<E2 extends E> |
newMutableSet(E2[] elements,
int expectedSize)
Constructs a new mutable set of elements from the given array.
|
<E2 extends E> |
newMutableSet(int expectedSize)
Constructs a new empty mutable set of the given expected size.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elements)
Constructs a new mutable set containing the elements in the specified iterable.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elements,
int expectedSize)
Constructs a new mutable set containing the elements in the specified iterable.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
Iterable<? extends E2> elems5)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
Iterable<? extends E2> elems5,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newMutableSet(Iterator<? extends E2> elements)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
<E2 extends E> |
newMutableSet(Iterator<? extends E2> elements,
int expectedSize)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
<E2 extends E> |
newMutableSetOf(E2 e1)
Constructs a new mutable singleton set of the given element.
|
<E2 extends E> |
newMutableSetOf(E2 e1,
E2 e2)
Constructs a new mutable set of the two specified elements.
|
<E2 extends E> |
newMutableSetOf(E2 e1,
E2 e2,
E2 e3)
Constructs a new mutable set of the three specified elements.
|
<E2 extends E> |
newMutableSetOf(E2 e1,
E2 e2,
E2 e3,
E2 e4)
Constructs a new mutable set of the four specified elements.
|
<E2 extends E> |
newMutableSetOf(E2 e1,
E2 e2,
E2 e3,
E2 e4,
E2 e5,
E2... restElements)
Constructs a new mutable set of the specified elements.
|
<E2 extends E> |
newUpdatableSet()
Constructs a new empty updatable set of the default
expected size.
|
<E2 extends E> |
newUpdatableSet(Consumer<Consumer<E2>> elementsSupplier)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
<E2 extends E> |
newUpdatableSet(Consumer<Consumer<E2>> elementsSupplier,
int expectedSize)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
<E2 extends E> |
newUpdatableSet(E2[] elements)
Constructs a new updatable set of elements from the given array.
|
<E2 extends E> |
newUpdatableSet(E2[] elements,
int expectedSize)
Constructs a new updatable set of elements from the given array.
|
<E2 extends E> |
newUpdatableSet(int expectedSize)
Constructs a new empty updatable set of the given expected size.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elements)
Constructs a new updatable set containing the elements in the specified iterable.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elements,
int expectedSize)
Constructs a new updatable set containing the elements in the specified iterable.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
Iterable<? extends E2> elems5)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterable<? extends E2> elems1,
Iterable<? extends E2> elems2,
Iterable<? extends E2> elems3,
Iterable<? extends E2> elems4,
Iterable<? extends E2> elems5,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
<E2 extends E> |
newUpdatableSet(Iterator<? extends E2> elements)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
<E2 extends E> |
newUpdatableSet(Iterator<? extends E2> elements,
int expectedSize)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
<E2 extends E> |
newUpdatableSetOf(E2 e1)
Constructs a new updatable singleton set of the given element.
|
<E2 extends E> |
newUpdatableSetOf(E2 e1,
E2 e2)
Constructs a new updatable set of the two specified elements.
|
<E2 extends E> |
newUpdatableSetOf(E2 e1,
E2 e2,
E2 e3)
Constructs a new updatable set of the three specified elements.
|
<E2 extends E> |
newUpdatableSetOf(E2 e1,
E2 e2,
E2 e3,
E2 e4)
Constructs a new updatable set of the four specified elements.
|
<E2 extends E> |
newUpdatableSetOf(E2 e1,
E2 e2,
E2 e3,
E2 e4,
E2 e5,
E2... restElements)
Constructs a new updatable set of the specified elements.
|
HashObjSetFactory<E> |
withEquivalence(Equivalence<? super E> equivalence)
Returns a copy of this factory, with exception that it constructs sets with
element equivalence set to the given
Equivalence . |
isNullKeyAllowed, withNullKeyAllowed
getHashConfig, withHashConfig
getDefaultExpectedSize, withDefaultExpectedSize
@Nonnull Equivalence<E> getEquivalence()
Equivalence.defaultEquality()
.getEquivalence
in interface ObjSetFactory<E,HashObjSetFactory<E>>
@Nonnull HashObjSetFactory<E> withEquivalence(@Nonnull Equivalence<? super E> equivalence)
Equivalence
.
The Koloboke Compile's counterpart of this configuration is the @CustomKeyEquivalence
annotation.
equivalence
- the new element equivalencekeyEquivalence
@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet()
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(int expectedSize)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elements, int expectedSize)
ObjSetFactory
If the specified iterable is an instance of ObjSet
and has the same equivalence with this factory (and thus the constructed set),
the expectedSize
argument is ignored.
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, int expectedSize)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, int expectedSize)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, int expectedSize)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, @Nonnull Iterable<? extends E2> elems5, int expectedSize)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterator<? extends E2> elements, int expectedSize)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Consumer<Consumer<E2>> elementsSupplier, int expectedSize)
ObjSetFactory
Example: TODO
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull E2[] elements, int expectedSize)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elements)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, @Nonnull Iterable<? extends E2> elems5)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Iterator<? extends E2> elements)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull Consumer<Consumer<E2>> elementsSupplier)
ObjSetFactory
Example: TODO
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull <E2 extends E> HashObjSet<E2> newMutableSet(@Nonnull E2[] elements)
ObjSetFactory
newMutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the array whose elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newMutableSetOf(E2 e1)
ObjSetFactory
newMutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the sole element@Nonnull <E2 extends E> HashObjSet<E2> newMutableSetOf(E2 e1, E2 e2)
ObjSetFactory
newMutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second element@Nonnull <E2 extends E> HashObjSet<E2> newMutableSetOf(E2 e1, E2 e2, E2 e3)
ObjSetFactory
newMutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third element@Nonnull <E2 extends E> HashObjSet<E2> newMutableSetOf(E2 e1, E2 e2, E2 e3, E2 e4)
ObjSetFactory
newMutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull <E2 extends E> HashObjSet<E2> newMutableSetOf(E2 e1, E2 e2, E2 e3, E2 e4, E2 e5, E2... restElements)
ObjSetFactory
newMutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet()
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(int expectedSize)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elements, int expectedSize)
ObjSetFactory
If the specified iterable is an instance of ObjSet
and has the same equivalence with this factory (and thus the constructed set),
the expectedSize
argument is ignored.
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, int expectedSize)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, int expectedSize)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, int expectedSize)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, @Nonnull Iterable<? extends E2> elems5, int expectedSize)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterator<? extends E2> elements, int expectedSize)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Consumer<Consumer<E2>> elementsSupplier, int expectedSize)
ObjSetFactory
Example: TODO
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull E2[] elements, int expectedSize)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elements)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, @Nonnull Iterable<? extends E2> elems5)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Iterator<? extends E2> elements)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull Consumer<Consumer<E2>> elementsSupplier)
ObjSetFactory
Example: TODO
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSet(@Nonnull E2[] elements)
ObjSetFactory
newUpdatableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the array whose elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSetOf(E2 e1)
ObjSetFactory
newUpdatableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the sole element@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSetOf(E2 e1, E2 e2)
ObjSetFactory
newUpdatableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second element@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSetOf(E2 e1, E2 e2, E2 e3)
ObjSetFactory
newUpdatableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third element@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSetOf(E2 e1, E2 e2, E2 e3, E2 e4)
ObjSetFactory
newUpdatableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull <E2 extends E> HashObjSet<E2> newUpdatableSetOf(E2 e1, E2 e2, E2 e3, E2 e4, E2 e5, E2... restElements)
ObjSetFactory
newUpdatableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elements, int expectedSize)
ObjSetFactory
If the specified iterable is an instance of ObjSet
and has the same equivalence with this factory (and thus the constructed set),
the expectedSize
argument is ignored.
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, int expectedSize)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, int expectedSize)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, int expectedSize)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, @Nonnull Iterable<? extends E2> elems5, int expectedSize)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterator<? extends E2> elements, int expectedSize)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Consumer<Consumer<E2>> elementsSupplier, int expectedSize)
ObjSetFactory
Example: TODO
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull E2[] elements, int expectedSize)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elements)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterable<? extends E2> elems1, @Nonnull Iterable<? extends E2> elems2, @Nonnull Iterable<? extends E2> elems3, @Nonnull Iterable<? extends E2> elems4, @Nonnull Iterable<? extends E2> elems5)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Iterator<? extends E2> elements)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull Consumer<Consumer<E2>> elementsSupplier)
ObjSetFactory
Example: TODO
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSet(@Nonnull E2[] elements)
ObjSetFactory
newImmutableSet
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned setelements
- the array whose elements are to be placed into the returned set@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSetOf(E2 e1)
ObjSetFactory
newImmutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the sole element@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSetOf(E2 e1, E2 e2)
ObjSetFactory
newImmutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second element@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSetOf(E2 e1, E2 e2, E2 e3)
ObjSetFactory
newImmutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third element@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSetOf(E2 e1, E2 e2, E2 e3, E2 e4)
ObjSetFactory
newImmutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull <E2 extends E> HashObjSet<E2> newImmutableSetOf(E2 e1, E2 e2, E2 e3, E2 e4, E2 e5, E2... restElements)
ObjSetFactory
newImmutableSetOf
in interface ObjSetFactory<E,HashObjSetFactory<E>>
E2
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set