F - the concrete factory type which extends this interfacepublic interface ShortSetFactory<F extends ShortSetFactory<F>> extends ContainerFactory<F>
ShortSets.ShortSet,
@KolobokeSet| Modifier and Type | Method and Description |
|---|---|
ShortSet |
newImmutableSet(Consumer<ShortConsumer> elementsSupplier)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
ShortSet |
newImmutableSet(Consumer<ShortConsumer> elementsSupplier,
int expectedSize)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
ShortSet |
newImmutableSet(Iterable<Short> elements)
Constructs a new immutable set containing the elements in the specified iterable.
|
ShortSet |
newImmutableSet(Iterable<Short> elements,
int expectedSize)
Constructs a new immutable set containing the elements in the specified iterable.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
Iterable<Short> elems5)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
Iterable<Short> elems5,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
ShortSet |
newImmutableSet(Iterator<Short> elements)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
ShortSet |
newImmutableSet(Iterator<Short> elements,
int expectedSize)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
ShortSet |
newImmutableSet(short[] elements)
Constructs a new immutable set of elements from the given array.
|
ShortSet |
newImmutableSet(Short[] elements)
Constructs a new immutable set of elements from the given array.
|
ShortSet |
newImmutableSet(short[] elements,
int expectedSize)
Constructs a new immutable set of elements from the given array.
|
ShortSet |
newImmutableSet(Short[] elements,
int expectedSize)
Constructs a new immutable set of elements from the given array.
|
ShortSet |
newImmutableSetOf(short e1)
Constructs a new immutable singleton set of the given element.
|
ShortSet |
newImmutableSetOf(short e1,
short e2)
Constructs a new immutable set of the two specified elements.
|
ShortSet |
newImmutableSetOf(short e1,
short e2,
short e3)
Constructs a new immutable set of the three specified elements.
|
ShortSet |
newImmutableSetOf(short e1,
short e2,
short e3,
short e4)
Constructs a new immutable set of the four specified elements.
|
ShortSet |
newImmutableSetOf(short e1,
short e2,
short e3,
short e4,
short e5,
short... restElements)
Constructs a new immutable set of the specified elements.
|
ShortSet |
newMutableSet()
Constructs a new empty mutable set of the default
expected size.
|
ShortSet |
newMutableSet(Consumer<ShortConsumer> elementsSupplier)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
ShortSet |
newMutableSet(Consumer<ShortConsumer> elementsSupplier,
int expectedSize)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
ShortSet |
newMutableSet(int expectedSize)
Constructs a new empty mutable set of the given expected size.
|
ShortSet |
newMutableSet(Iterable<Short> elements)
Constructs a new mutable set containing the elements in the specified iterable.
|
ShortSet |
newMutableSet(Iterable<Short> elements,
int expectedSize)
Constructs a new mutable set containing the elements in the specified iterable.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
Iterable<Short> elems5)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
Iterable<Short> elems5,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
ShortSet |
newMutableSet(Iterator<Short> elements)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
ShortSet |
newMutableSet(Iterator<Short> elements,
int expectedSize)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
ShortSet |
newMutableSet(short[] elements)
Constructs a new mutable set of elements from the given array.
|
ShortSet |
newMutableSet(Short[] elements)
Constructs a new mutable set of elements from the given array.
|
ShortSet |
newMutableSet(short[] elements,
int expectedSize)
Constructs a new mutable set of elements from the given array.
|
ShortSet |
newMutableSet(Short[] elements,
int expectedSize)
Constructs a new mutable set of elements from the given array.
|
ShortSet |
newMutableSetOf(short e1)
Constructs a new mutable singleton set of the given element.
|
ShortSet |
newMutableSetOf(short e1,
short e2)
Constructs a new mutable set of the two specified elements.
|
ShortSet |
newMutableSetOf(short e1,
short e2,
short e3)
Constructs a new mutable set of the three specified elements.
|
ShortSet |
newMutableSetOf(short e1,
short e2,
short e3,
short e4)
Constructs a new mutable set of the four specified elements.
|
ShortSet |
newMutableSetOf(short e1,
short e2,
short e3,
short e4,
short e5,
short... restElements)
Constructs a new mutable set of the specified elements.
|
ShortSet |
newUpdatableSet()
Constructs a new empty updatable set of the default
expected size.
|
ShortSet |
newUpdatableSet(Consumer<ShortConsumer> elementsSupplier)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
ShortSet |
newUpdatableSet(Consumer<ShortConsumer> elementsSupplier,
int expectedSize)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
ShortSet |
newUpdatableSet(int expectedSize)
Constructs a new empty updatable set of the given expected size.
|
ShortSet |
newUpdatableSet(Iterable<Short> elements)
Constructs a new updatable set containing the elements in the specified iterable.
|
ShortSet |
newUpdatableSet(Iterable<Short> elements,
int expectedSize)
Constructs a new updatable set containing the elements in the specified iterable.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
Iterable<Short> elems5)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterable<Short> elems1,
Iterable<Short> elems2,
Iterable<Short> elems3,
Iterable<Short> elems4,
Iterable<Short> elems5,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
ShortSet |
newUpdatableSet(Iterator<Short> elements)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
ShortSet |
newUpdatableSet(Iterator<Short> elements,
int expectedSize)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
ShortSet |
newUpdatableSet(short[] elements)
Constructs a new updatable set of elements from the given array.
|
ShortSet |
newUpdatableSet(Short[] elements)
Constructs a new updatable set of elements from the given array.
|
ShortSet |
newUpdatableSet(short[] elements,
int expectedSize)
Constructs a new updatable set of elements from the given array.
|
ShortSet |
newUpdatableSet(Short[] elements,
int expectedSize)
Constructs a new updatable set of elements from the given array.
|
ShortSet |
newUpdatableSetOf(short e1)
Constructs a new updatable singleton set of the given element.
|
ShortSet |
newUpdatableSetOf(short e1,
short e2)
Constructs a new updatable set of the two specified elements.
|
ShortSet |
newUpdatableSetOf(short e1,
short e2,
short e3)
Constructs a new updatable set of the three specified elements.
|
ShortSet |
newUpdatableSetOf(short e1,
short e2,
short e3,
short e4)
Constructs a new updatable set of the four specified elements.
|
ShortSet |
newUpdatableSetOf(short e1,
short e2,
short e3,
short e4,
short e5,
short... restElements)
Constructs a new updatable set of the specified elements.
|
getDefaultExpectedSize, withDefaultExpectedSize@Nonnull ShortSet newMutableSet()
@Nonnull ShortSet newMutableSet(int expectedSize)
expectedSize - the expected size of the returned set@Nonnull ShortSet newMutableSet(@Nonnull Iterable<Short> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize argument is ignored.
elements - the iterable whose elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, int expectedSize)
elems1 - 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 ShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, int expectedSize)
elems1 - 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 ShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, int expectedSize)
elems1 - 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 setShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, @Nonnull Iterable<Short> elems5, int expectedSize)
elems1 - 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 ShortSet newMutableSet(@Nonnull Iterator<Short> elements, int expectedSize)
elements - the iterator from which elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newMutableSet(@Nonnull Consumer<ShortConsumer> elementsSupplier, int expectedSize)
Example: TODO
elementsSupplier - the function which supply mappings for the returned set via
the callback passed inexpectedSize - the expected size of the returned set@Nonnull ShortSet newMutableSet(@Nonnull short[] elements, int expectedSize)
elements - the array whose elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newMutableSet(@Nonnull Short[] elements, int expectedSize)
elements - the array whose elements are to be placed into the returned setexpectedSize - the expected size of the returned setNullPointerException - if elements array contain null elements@Nonnull ShortSet newMutableSet(@Nonnull Iterable<Short> elements)
elements - the iterable whose elements are to be placed into the returned set@Nonnull ShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2)
elems1 - the first source of elements for the returned setelems2 - the second source of elements for the returned set@Nonnull ShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3)
elems1 - 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 ShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4)
elems1 - 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 setShortSet newMutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, @Nonnull Iterable<Short> elems5)
elems1 - 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 ShortSet newMutableSet(@Nonnull Iterator<Short> elements)
elements - the iterator from which elements are to be placed into the returned set@Nonnull ShortSet newMutableSet(@Nonnull Consumer<ShortConsumer> elementsSupplier)
Example: TODO
elementsSupplier - the function which supply mappings for the returned set via
the callback passed in@Nonnull ShortSet newMutableSet(@Nonnull short[] elements)
elements - the array whose elements are to be placed into the returned set@Nonnull ShortSet newMutableSet(@Nonnull Short[] elements)
elements - the array whose elements are to be placed into the returned setNullPointerException - if elements array contain null elements@Nonnull ShortSet newMutableSetOf(short e1)
e1 - the sole element@Nonnull ShortSet newMutableSetOf(short e1, short e2)
e1 - the first elemente2 - the second element@Nonnull ShortSet newMutableSetOf(short e1, short e2, short e3)
e1 - the first elemente2 - the second elemente3 - the third element@Nonnull ShortSet newMutableSetOf(short e1, short e2, short e3, short e4)
e1 - the first elemente2 - the second elemente3 - the third elemente4 - the fourth element@Nonnull ShortSet newMutableSetOf(short e1, short e2, short e3, short e4, short e5, short... restElements)
e1 - 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 ShortSet newUpdatableSet()
@Nonnull ShortSet newUpdatableSet(int expectedSize)
expectedSize - the expected size of the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Iterable<Short> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize argument is ignored.
elements - the iterable whose elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, int expectedSize)
elems1 - 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 ShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, int expectedSize)
elems1 - 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 ShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, int expectedSize)
elems1 - 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 setShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, @Nonnull Iterable<Short> elems5, int expectedSize)
elems1 - 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 ShortSet newUpdatableSet(@Nonnull Iterator<Short> elements, int expectedSize)
elements - the iterator from which elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Consumer<ShortConsumer> elementsSupplier, int expectedSize)
Example: TODO
elementsSupplier - the function which supply mappings for the returned set via
the callback passed inexpectedSize - the expected size of the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull short[] elements, int expectedSize)
elements - the array whose elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Short[] elements, int expectedSize)
elements - the array whose elements are to be placed into the returned setexpectedSize - the expected size of the returned setNullPointerException - if elements array contain null elements@Nonnull ShortSet newUpdatableSet(@Nonnull Iterable<Short> elements)
elements - the iterable whose elements are to be placed into the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2)
elems1 - the first source of elements for the returned setelems2 - the second source of elements for the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3)
elems1 - 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 ShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4)
elems1 - 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 setShortSet newUpdatableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, @Nonnull Iterable<Short> elems5)
elems1 - 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 ShortSet newUpdatableSet(@Nonnull Iterator<Short> elements)
elements - the iterator from which elements are to be placed into the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Consumer<ShortConsumer> elementsSupplier)
Example: TODO
elementsSupplier - the function which supply mappings for the returned set via
the callback passed in@Nonnull ShortSet newUpdatableSet(@Nonnull short[] elements)
elements - the array whose elements are to be placed into the returned set@Nonnull ShortSet newUpdatableSet(@Nonnull Short[] elements)
elements - the array whose elements are to be placed into the returned setNullPointerException - if elements array contain null elements@Nonnull ShortSet newUpdatableSetOf(short e1)
e1 - the sole element@Nonnull ShortSet newUpdatableSetOf(short e1, short e2)
e1 - the first elemente2 - the second element@Nonnull ShortSet newUpdatableSetOf(short e1, short e2, short e3)
e1 - the first elemente2 - the second elemente3 - the third element@Nonnull ShortSet newUpdatableSetOf(short e1, short e2, short e3, short e4)
e1 - the first elemente2 - the second elemente3 - the third elemente4 - the fourth element@Nonnull ShortSet newUpdatableSetOf(short e1, short e2, short e3, short e4, short e5, short... restElements)
e1 - 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 ShortSet newImmutableSet(@Nonnull Iterable<Short> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize argument is ignored.
elements - the iterable whose elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, int expectedSize)
elems1 - 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 ShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, int expectedSize)
elems1 - 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 ShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, int expectedSize)
elems1 - 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 setShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, @Nonnull Iterable<Short> elems5, int expectedSize)
elems1 - 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 ShortSet newImmutableSet(@Nonnull Iterator<Short> elements, int expectedSize)
elements - the iterator from which elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newImmutableSet(@Nonnull Consumer<ShortConsumer> elementsSupplier, int expectedSize)
Example: TODO
elementsSupplier - the function which supply mappings for the returned set via
the callback passed inexpectedSize - the expected size of the returned set@Nonnull ShortSet newImmutableSet(@Nonnull short[] elements, int expectedSize)
elements - the array whose elements are to be placed into the returned setexpectedSize - the expected size of the returned set@Nonnull ShortSet newImmutableSet(@Nonnull Short[] elements, int expectedSize)
elements - the array whose elements are to be placed into the returned setexpectedSize - the expected size of the returned setNullPointerException - if elements array contain null elements@Nonnull ShortSet newImmutableSet(@Nonnull Iterable<Short> elements)
elements - the iterable whose elements are to be placed into the returned set@Nonnull ShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2)
elems1 - the first source of elements for the returned setelems2 - the second source of elements for the returned set@Nonnull ShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3)
elems1 - 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 ShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4)
elems1 - 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 setShortSet newImmutableSet(@Nonnull Iterable<Short> elems1, @Nonnull Iterable<Short> elems2, @Nonnull Iterable<Short> elems3, @Nonnull Iterable<Short> elems4, @Nonnull Iterable<Short> elems5)
elems1 - 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 ShortSet newImmutableSet(@Nonnull Iterator<Short> elements)
elements - the iterator from which elements are to be placed into the returned set@Nonnull ShortSet newImmutableSet(@Nonnull Consumer<ShortConsumer> elementsSupplier)
Example: TODO
elementsSupplier - the function which supply mappings for the returned set via
the callback passed in@Nonnull ShortSet newImmutableSet(@Nonnull short[] elements)
elements - the array whose elements are to be placed into the returned set@Nonnull ShortSet newImmutableSet(@Nonnull Short[] elements)
elements - the array whose elements are to be placed into the returned setNullPointerException - if elements array contain null elements@Nonnull ShortSet newImmutableSetOf(short e1)
e1 - the sole element@Nonnull ShortSet newImmutableSetOf(short e1, short e2)
e1 - the first elemente2 - the second element@Nonnull ShortSet newImmutableSetOf(short e1, short e2, short e3)
e1 - the first elemente2 - the second elemente3 - the third element@Nonnull ShortSet newImmutableSetOf(short e1, short e2, short e3, short e4)
e1 - the first elemente2 - the second elemente3 - the third elemente4 - the fourth element@Nonnull ShortSet newImmutableSetOf(short e1, short e2, short e3, short e4, short e5, short... restElements)
e1 - the first elemente2 - the second elemente3 - the third elemente4 - the fourth elemente5 - the fifth elementrestElements - the rest elements to be placed into the set