public final class HashObjSets extends Object
HashObjSet
s, and
the default HashObjSetFactory
static provider (getDefaultFactory()
).HashObjSet
,
@KolobokeSet
Modifier and Type | Method and Description |
---|---|
static <E> HashObjSetFactory<E> |
getDefaultFactory()
Returns the default implementation of
HashObjSetFactory , to which all static methods
in this class delegate. |
static <E> HashObjSet<E> |
newImmutableSet(Consumer<Consumer<E>> elementsSupplier)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
static <E> HashObjSet<E> |
newImmutableSet(Consumer<Consumer<E>> elementsSupplier,
int expectedSize)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
static <E> HashObjSet<E> |
newImmutableSet(E[] elements)
Constructs a new immutable set of elements from the given array.
|
static <E> HashObjSet<E> |
newImmutableSet(E[] elements,
int expectedSize)
Constructs a new immutable set of elements from the given array.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elements)
Constructs a new immutable set containing the elements in the specified iterable.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elements,
int expectedSize)
Constructs a new immutable set containing the elements in the specified iterable.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
Iterable<? extends E> elems5)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
Iterable<? extends E> elems5,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterator<? extends E> elements)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
static <E> HashObjSet<E> |
newImmutableSet(Iterator<? extends E> elements,
int expectedSize)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
static <E> HashObjSet<E> |
newImmutableSetOf(E e1)
Constructs a new immutable singleton set of the given element.
|
static <E> HashObjSet<E> |
newImmutableSetOf(E e1,
E e2)
Constructs a new immutable set of the two specified elements.
|
static <E> HashObjSet<E> |
newImmutableSetOf(E e1,
E e2,
E e3)
Constructs a new immutable set of the three specified elements.
|
static <E> HashObjSet<E> |
newImmutableSetOf(E e1,
E e2,
E e3,
E e4)
Constructs a new immutable set of the four specified elements.
|
static <E> HashObjSet<E> |
newImmutableSetOf(E e1,
E e2,
E e3,
E e4,
E e5,
E... restElements)
Constructs a new immutable set of the specified elements.
|
static <E> HashObjSet<E> |
newMutableSet()
Constructs a new empty mutable set of the default expected size.
|
static <E> HashObjSet<E> |
newMutableSet(Consumer<Consumer<E>> elementsSupplier)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
static <E> HashObjSet<E> |
newMutableSet(Consumer<Consumer<E>> elementsSupplier,
int expectedSize)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
static <E> HashObjSet<E> |
newMutableSet(E[] elements)
Constructs a new mutable set of elements from the given array.
|
static <E> HashObjSet<E> |
newMutableSet(E[] elements,
int expectedSize)
Constructs a new mutable set of elements from the given array.
|
static <E> HashObjSet<E> |
newMutableSet(int expectedSize)
Constructs a new empty mutable set of the given expected size.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elements)
Constructs a new mutable set containing the elements in the specified iterable.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elements,
int expectedSize)
Constructs a new mutable set containing the elements in the specified iterable.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
Iterable<? extends E> elems5)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
Iterable<? extends E> elems5,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newMutableSet(Iterator<? extends E> elements)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
static <E> HashObjSet<E> |
newMutableSet(Iterator<? extends E> elements,
int expectedSize)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
static <E> HashObjSet<E> |
newMutableSetOf(E e1)
Constructs a new mutable singleton set of the given element.
|
static <E> HashObjSet<E> |
newMutableSetOf(E e1,
E e2)
Constructs a new mutable set of the two specified elements.
|
static <E> HashObjSet<E> |
newMutableSetOf(E e1,
E e2,
E e3)
Constructs a new mutable set of the three specified elements.
|
static <E> HashObjSet<E> |
newMutableSetOf(E e1,
E e2,
E e3,
E e4)
Constructs a new mutable set of the four specified elements.
|
static <E> HashObjSet<E> |
newMutableSetOf(E e1,
E e2,
E e3,
E e4,
E e5,
E... restElements)
Constructs a new mutable set of the specified elements.
|
static <E> HashObjSet<E> |
newUpdatableSet()
Constructs a new empty updatable set of the default expected size.
|
static <E> HashObjSet<E> |
newUpdatableSet(Consumer<Consumer<E>> elementsSupplier)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
static <E> HashObjSet<E> |
newUpdatableSet(Consumer<Consumer<E>> elementsSupplier,
int expectedSize)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
static <E> HashObjSet<E> |
newUpdatableSet(E[] elements)
Constructs a new updatable set of elements from the given array.
|
static <E> HashObjSet<E> |
newUpdatableSet(E[] elements,
int expectedSize)
Constructs a new updatable set of elements from the given array.
|
static <E> HashObjSet<E> |
newUpdatableSet(int expectedSize)
Constructs a new empty updatable set of the given expected size.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elements)
Constructs a new updatable set containing the elements in the specified iterable.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elements,
int expectedSize)
Constructs a new updatable set containing the elements in the specified iterable.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
Iterable<? extends E> elems5)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterable<? extends E> elems1,
Iterable<? extends E> elems2,
Iterable<? extends E> elems3,
Iterable<? extends E> elems4,
Iterable<? extends E> elems5,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterator<? extends E> elements)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
static <E> HashObjSet<E> |
newUpdatableSet(Iterator<? extends E> elements,
int expectedSize)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
static <E> HashObjSet<E> |
newUpdatableSetOf(E e1)
Constructs a new updatable singleton set of the given element.
|
static <E> HashObjSet<E> |
newUpdatableSetOf(E e1,
E e2)
Constructs a new updatable set of the two specified elements.
|
static <E> HashObjSet<E> |
newUpdatableSetOf(E e1,
E e2,
E e3)
Constructs a new updatable set of the three specified elements.
|
static <E> HashObjSet<E> |
newUpdatableSetOf(E e1,
E e2,
E e3,
E e4)
Constructs a new updatable set of the four specified elements.
|
static <E> HashObjSet<E> |
newUpdatableSetOf(E e1,
E e2,
E e3,
E e4,
E e5,
E... restElements)
Constructs a new updatable set of the specified elements.
|
@Nonnull public static <E> HashObjSetFactory<E> getDefaultFactory()
HashObjSetFactory
, to which all static methods
in this class delegate.E
- the most general element type of the sets that could
constructed by the returned factoryHashObjSetFactory
RuntimeException
- if no implementations of HashObjSetFactory
are provided@Nonnull public static <E> HashObjSet<E> newMutableSet()
This method simply delegates to getDefaultFactory()
.newMutableSet()
.
E
- the element type of the returned set@Nonnull public static <E> HashObjSet<E> newMutableSet(int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(expectedSize)
.
E
- the element type of the returned setexpectedSize
- the expected size of the returned set@Nonnull public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elements, int expectedSize)
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.
This method simply delegates to getDefaultFactory()
.newMutableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, @Nonnull Iterable<? extends E> elems5, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4, elems5, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterator<? extends E> elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Consumer<Consumer<E>> elementsSupplier, int expectedSize)
Example: TODO
This method simply delegates to getDefaultFactory()
.newMutableSet(elementsSupplier, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull E[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elements)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements)
.
E
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, @Nonnull Iterable<? extends E> elems5)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4, elems5)
.
E
- 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 public static <E> HashObjSet<E> newMutableSet(@Nonnull Iterator<? extends E> elements)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements)
.
E
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newMutableSet(@Nonnull Consumer<Consumer<E>> elementsSupplier)
Example: TODO
This method simply delegates to getDefaultFactory()
.newMutableSet(elementsSupplier)
.
E
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull public static <E> HashObjSet<E> newMutableSet(@Nonnull E[] elements)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements)
.
E
- the element type of the returned setelements
- the array whose elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newMutableSetOf(E e1)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1)
.
E
- the element type of the returned sete1
- the sole element@Nonnull public static <E> HashObjSet<E> newMutableSetOf(E e1, E e2)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2)
.
E
- the element type of the returned sete1
- the first elemente2
- the second element@Nonnull public static <E> HashObjSet<E> newMutableSetOf(E e1, E e2, E e3)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2, e3)
.
E
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third element@Nonnull public static <E> HashObjSet<E> newMutableSetOf(E e1, E e2, E e3, E e4)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2, e3, e4)
.
E
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull public static <E> HashObjSet<E> newMutableSetOf(E e1, E e2, E e3, E e4, E e5, E... restElements)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2, e3, e4, e5, restElements)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet()
This method simply delegates to getDefaultFactory()
.newUpdatableSet()
.
E
- the element type of the returned set@Nonnull public static <E> HashObjSet<E> newUpdatableSet(int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(expectedSize)
.
E
- the element type of the returned setexpectedSize
- the expected size of the returned set@Nonnull public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elements, int expectedSize)
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.
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, @Nonnull Iterable<? extends E> elems5, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4, elems5, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterator<? extends E> elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Consumer<Consumer<E>> elementsSupplier, int expectedSize)
Example: TODO
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elementsSupplier, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull E[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elements)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements)
.
E
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, @Nonnull Iterable<? extends E> elems5)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4, elems5)
.
E
- 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 public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Iterator<? extends E> elements)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements)
.
E
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newUpdatableSet(@Nonnull Consumer<Consumer<E>> elementsSupplier)
Example: TODO
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elementsSupplier)
.
E
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull public static <E> HashObjSet<E> newUpdatableSet(@Nonnull E[] elements)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements)
.
E
- the element type of the returned setelements
- the array whose elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newUpdatableSetOf(E e1)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1)
.
E
- the element type of the returned sete1
- the sole element@Nonnull public static <E> HashObjSet<E> newUpdatableSetOf(E e1, E e2)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2)
.
E
- the element type of the returned sete1
- the first elemente2
- the second element@Nonnull public static <E> HashObjSet<E> newUpdatableSetOf(E e1, E e2, E e3)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2, e3)
.
E
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third element@Nonnull public static <E> HashObjSet<E> newUpdatableSetOf(E e1, E e2, E e3, E e4)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2, e3, e4)
.
E
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull public static <E> HashObjSet<E> newUpdatableSetOf(E e1, E e2, E e3, E e4, E e5, E... restElements)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2, e3, e4, e5, restElements)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elements, int expectedSize)
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.
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, @Nonnull Iterable<? extends E> elems5, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4, elems5, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterator<? extends E> elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Consumer<Consumer<E>> elementsSupplier, int expectedSize)
Example: TODO
This method simply delegates to getDefaultFactory()
.newImmutableSet(elementsSupplier, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull E[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements, expectedSize)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elements)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements)
.
E
- the element type of the returned setelements
- the iterable whose elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterable<? extends E> elems1, @Nonnull Iterable<? extends E> elems2, @Nonnull Iterable<? extends E> elems3, @Nonnull Iterable<? extends E> elems4, @Nonnull Iterable<? extends E> elems5)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4, elems5)
.
E
- 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 public static <E> HashObjSet<E> newImmutableSet(@Nonnull Iterator<? extends E> elements)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements)
.
E
- the element type of the returned setelements
- the iterator from which elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newImmutableSet(@Nonnull Consumer<Consumer<E>> elementsSupplier)
Example: TODO
This method simply delegates to getDefaultFactory()
.newImmutableSet(elementsSupplier)
.
E
- the element type of the returned setelementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull public static <E> HashObjSet<E> newImmutableSet(@Nonnull E[] elements)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements)
.
E
- the element type of the returned setelements
- the array whose elements are to be placed into the returned set@Nonnull public static <E> HashObjSet<E> newImmutableSetOf(E e1)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1)
.
E
- the element type of the returned sete1
- the sole element@Nonnull public static <E> HashObjSet<E> newImmutableSetOf(E e1, E e2)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2)
.
E
- the element type of the returned sete1
- the first elemente2
- the second element@Nonnull public static <E> HashObjSet<E> newImmutableSetOf(E e1, E e2, E e3)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2, e3)
.
E
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third element@Nonnull public static <E> HashObjSet<E> newImmutableSetOf(E e1, E e2, E e3, E e4)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2, e3, e4)
.
E
- the element type of the returned sete1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull public static <E> HashObjSet<E> newImmutableSetOf(E e1, E e2, E e3, E e4, E e5, E... restElements)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2, e3, e4, e5, restElements)
.
E
- 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