com.koloboke.collect.set.hash
Interface HashShortSetFactory

All Superinterfaces:
ContainerFactory<HashShortSetFactory>, HashContainerFactory<HashShortSetFactory>, ShortHashFactory<HashShortSetFactory>, ShortSetFactory<HashShortSetFactory>

public interface HashShortSetFactory
extends ShortSetFactory<HashShortSetFactory>, ShortHashFactory<HashShortSetFactory>

An immutable factory of HashShortSets.

See Also:
HashShortSet, HashShortSets.getDefaultFactory(), @KolobokeSet

Method Summary
 HashShortSet newImmutableSet(Consumer<ShortConsumer> elementsSupplier)
          Constructs a new immutable set of elements consumed by the callback within the given closure.
 HashShortSet newImmutableSet(Consumer<ShortConsumer> elementsSupplier, int expectedSize)
          Constructs a new immutable set of elements consumed by the callback within the given closure.
 HashShortSet newImmutableSet(Iterable<Short> elements)
          Constructs a new immutable set containing the elements in the specified iterable.
 HashShortSet newImmutableSet(Iterable<Short> elements, int expectedSize)
          Constructs a new immutable set containing the elements in the specified iterable.
 HashShortSet newImmutableSet(Iterable<Short> elems1, Iterable<Short> elems2)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashShortSet newImmutableSet(Iterable<Short> elems1, Iterable<Short> elems2, int expectedSize)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashShortSet newImmutableSet(Iterable<Short> elems1, Iterable<Short> elems2, Iterable<Short> elems3)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet newImmutableSet(Iterator<Short> elements)
          Constructs a new immutable set containing the elements traversed by the specified iterator.
 HashShortSet newImmutableSet(Iterator<Short> elements, int expectedSize)
          Constructs a new immutable set containing the elements traversed by the specified iterator.
 HashShortSet newImmutableSet(short[] elements)
          Constructs a new immutable set of elements from the given array.
 HashShortSet newImmutableSet(Short[] elements)
          Constructs a new immutable set of elements from the given array.
 HashShortSet newImmutableSet(short[] elements, int expectedSize)
          Constructs a new immutable set of elements from the given array.
 HashShortSet newImmutableSet(Short[] elements, int expectedSize)
          Constructs a new immutable set of elements from the given array.
 HashShortSet newImmutableSetOf(short e1)
          Constructs a new immutable singleton set of the given element.
 HashShortSet newImmutableSetOf(short e1, short e2)
          Constructs a new immutable set of the two specified elements.
 HashShortSet newImmutableSetOf(short e1, short e2, short e3)
          Constructs a new immutable set of the three specified elements.
 HashShortSet newImmutableSetOf(short e1, short e2, short e3, short e4)
          Constructs a new immutable set of the four specified elements.
 HashShortSet newImmutableSetOf(short e1, short e2, short e3, short e4, short e5, short... restElements)
          Constructs a new immutable set of the specified elements.
 HashShortSet newMutableSet()
          Constructs a new empty mutable set of the default expected size.
 HashShortSet newMutableSet(Consumer<ShortConsumer> elementsSupplier)
          Constructs a new mutable set of elements consumed by the callback within the given closure.
 HashShortSet newMutableSet(Consumer<ShortConsumer> elementsSupplier, int expectedSize)
          Constructs a new mutable set of elements consumed by the callback within the given closure.
 HashShortSet newMutableSet(int expectedSize)
          Constructs a new empty mutable set of the given expected size.
 HashShortSet newMutableSet(Iterable<Short> elements)
          Constructs a new mutable set containing the elements in the specified iterable.
 HashShortSet newMutableSet(Iterable<Short> elements, int expectedSize)
          Constructs a new mutable set containing the elements in the specified iterable.
 HashShortSet newMutableSet(Iterable<Short> elems1, Iterable<Short> elems2)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashShortSet newMutableSet(Iterable<Short> elems1, Iterable<Short> elems2, int expectedSize)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashShortSet newMutableSet(Iterable<Short> elems1, Iterable<Short> elems2, Iterable<Short> elems3)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet newMutableSet(Iterator<Short> elements)
          Constructs a new mutable set containing the elements traversed by the specified iterator.
 HashShortSet newMutableSet(Iterator<Short> elements, int expectedSize)
          Constructs a new mutable set containing the elements traversed by the specified iterator.
 HashShortSet newMutableSet(short[] elements)
          Constructs a new mutable set of elements from the given array.
 HashShortSet newMutableSet(Short[] elements)
          Constructs a new mutable set of elements from the given array.
 HashShortSet newMutableSet(short[] elements, int expectedSize)
          Constructs a new mutable set of elements from the given array.
 HashShortSet newMutableSet(Short[] elements, int expectedSize)
          Constructs a new mutable set of elements from the given array.
 HashShortSet newMutableSetOf(short e1)
          Constructs a new mutable singleton set of the given element.
 HashShortSet newMutableSetOf(short e1, short e2)
          Constructs a new mutable set of the two specified elements.
 HashShortSet newMutableSetOf(short e1, short e2, short e3)
          Constructs a new mutable set of the three specified elements.
 HashShortSet newMutableSetOf(short e1, short e2, short e3, short e4)
          Constructs a new mutable set of the four specified elements.
 HashShortSet newMutableSetOf(short e1, short e2, short e3, short e4, short e5, short... restElements)
          Constructs a new mutable set of the specified elements.
 HashShortSet newUpdatableSet()
          Constructs a new empty updatable set of the default expected size.
 HashShortSet newUpdatableSet(Consumer<ShortConsumer> elementsSupplier)
          Constructs a new updatable set of elements consumed by the callback within the given closure.
 HashShortSet newUpdatableSet(Consumer<ShortConsumer> elementsSupplier, int expectedSize)
          Constructs a new updatable set of elements consumed by the callback within the given closure.
 HashShortSet newUpdatableSet(int expectedSize)
          Constructs a new empty updatable set of the given expected size.
 HashShortSet newUpdatableSet(Iterable<Short> elements)
          Constructs a new updatable set containing the elements in the specified iterable.
 HashShortSet newUpdatableSet(Iterable<Short> elements, int expectedSize)
          Constructs a new updatable set containing the elements in the specified iterable.
 HashShortSet newUpdatableSet(Iterable<Short> elems1, Iterable<Short> elems2)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashShortSet newUpdatableSet(Iterable<Short> elems1, Iterable<Short> elems2, int expectedSize)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashShortSet newUpdatableSet(Iterable<Short> elems1, Iterable<Short> elems2, Iterable<Short> elems3)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet 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.
 HashShortSet newUpdatableSet(Iterator<Short> elements)
          Constructs a new updatable set containing the elements traversed by the specified iterator.
 HashShortSet newUpdatableSet(Iterator<Short> elements, int expectedSize)
          Constructs a new updatable set containing the elements traversed by the specified iterator.
 HashShortSet newUpdatableSet(short[] elements)
          Constructs a new updatable set of elements from the given array.
 HashShortSet newUpdatableSet(Short[] elements)
          Constructs a new updatable set of elements from the given array.
 HashShortSet newUpdatableSet(short[] elements, int expectedSize)
          Constructs a new updatable set of elements from the given array.
 HashShortSet newUpdatableSet(Short[] elements, int expectedSize)
          Constructs a new updatable set of elements from the given array.
 HashShortSet newUpdatableSetOf(short e1)
          Constructs a new updatable singleton set of the given element.
 HashShortSet newUpdatableSetOf(short e1, short e2)
          Constructs a new updatable set of the two specified elements.
 HashShortSet newUpdatableSetOf(short e1, short e2, short e3)
          Constructs a new updatable set of the three specified elements.
 HashShortSet newUpdatableSetOf(short e1, short e2, short e3, short e4)
          Constructs a new updatable set of the four specified elements.
 HashShortSet newUpdatableSetOf(short e1, short e2, short e3, short e4, short e5, short... restElements)
          Constructs a new updatable set of the specified elements.
 
Methods inherited from interface com.koloboke.collect.hash.ShortHashFactory
getLowerKeyDomainBound, getUpperKeyDomainBound, withKeysDomain, withKeysDomainComplement
 
Methods inherited from interface com.koloboke.collect.hash.HashContainerFactory
getHashConfig, withHashConfig
 
Methods inherited from interface com.koloboke.collect.ContainerFactory
getDefaultExpectedSize, withDefaultExpectedSize
 

Method Detail

newMutableSet

@Nonnull
HashShortSet newMutableSet()
Description copied from interface: ShortSetFactory
Constructs a new empty mutable set of the default expected size.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Returns:
a new empty mutable set

newMutableSet

@Nonnull
HashShortSet newMutableSet(int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new empty mutable set of the given expected size.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty mutable set of the given expected size

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elements,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set containing the elements in the specified iterable.

If the specified iterable is a Set the expectedSize argument is ignored.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterable whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set of the elements of the specified iterable

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2,
                                   @Nonnull
                                   Iterable<Short> elems3,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2,
                                   @Nonnull
                                   Iterable<Short> elems3,
                                   @Nonnull
                                   Iterable<Short> elems4,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2,
                                   @Nonnull
                                   Iterable<Short> elems3,
                                   @Nonnull
                                   Iterable<Short> elems4,
                                   @Nonnull
                                   Iterable<Short> elems5,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
elems5 - the fifth source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterator<Short> elements,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set containing the elements traversed by the specified iterator.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterator from which elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set containing the elements traversed by the specified iterator

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Consumer<ShortConsumer> elementsSupplier,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elementsSupplier - the function which supply mappings for the returned set via the callback passed in
expectedSize - the expected size of the returned set
Returns:
a new mutable set of elements consumed by the callback within the given closure

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   short[] elements,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set of elements from the given array

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Short[] elements,
                                   int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new mutable set of elements from the given array

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elements)
Description copied from interface: ShortSetFactory
Constructs a new mutable set containing the elements in the specified iterable.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterable whose elements are to be placed into the returned set
Returns:
a new mutable set of the elements of the specified iterable

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2,
                                   @Nonnull
                                   Iterable<Short> elems3)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2,
                                   @Nonnull
                                   Iterable<Short> elems3,
                                   @Nonnull
                                   Iterable<Short> elems4)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterable<Short> elems1,
                                   @Nonnull
                                   Iterable<Short> elems2,
                                   @Nonnull
                                   Iterable<Short> elems3,
                                   @Nonnull
                                   Iterable<Short> elems4,
                                   @Nonnull
                                   Iterable<Short> elems5)
Description copied from interface: ShortSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
elems5 - the fifth source of elements for the returned set
Returns:
a new mutable set which merge the elements of the specified iterables

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Iterator<Short> elements)
Description copied from interface: ShortSetFactory
Constructs a new mutable set containing the elements traversed by the specified iterator.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterator from which elements are to be placed into the returned set
Returns:
a new mutable set containing the elements traversed by the specified iterator

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Consumer<ShortConsumer> elementsSupplier)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elementsSupplier - the function which supply mappings for the returned set via the callback passed in
Returns:
a new mutable set of elements consumed by the callback within the given closure

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   short[] elements)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
Returns:
a new mutable set of elements from the given array

newMutableSet

@Nonnull
HashShortSet newMutableSet(@Nonnull
                                   Short[] elements)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
Returns:
a new mutable set of elements from the given array

newMutableSetOf

@Nonnull
HashShortSet newMutableSetOf(short e1)
Description copied from interface: ShortSetFactory
Constructs a new mutable singleton set of the given element.

Specified by:
newMutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the sole element
Returns:
a new mutable singleton set of the given element

newMutableSetOf

@Nonnull
HashShortSet newMutableSetOf(short e1,
                                     short e2)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of the two specified elements.

Specified by:
newMutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
Returns:
a new mutable set of the two specified elements

newMutableSetOf

@Nonnull
HashShortSet newMutableSetOf(short e1,
                                     short e2,
                                     short e3)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of the three specified elements.

Specified by:
newMutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
Returns:
a new mutable set of the three specified elements

newMutableSetOf

@Nonnull
HashShortSet newMutableSetOf(short e1,
                                     short e2,
                                     short e3,
                                     short e4)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of the four specified elements.

Specified by:
newMutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
e4 - the fourth element
Returns:
a new mutable set of the four specified elements

newMutableSetOf

@Nonnull
HashShortSet newMutableSetOf(short e1,
                                     short e2,
                                     short e3,
                                     short e4,
                                     short e5,
                                     short... restElements)
Description copied from interface: ShortSetFactory
Constructs a new mutable set of the specified elements.

Specified by:
newMutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
e4 - the fourth element
e5 - the fifth element
restElements - the rest elements to be placed into the set
Returns:
a new mutable set of the specified elements

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet()
Description copied from interface: ShortSetFactory
Constructs a new empty updatable set of the default expected size.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Returns:
a new empty updatable set

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new empty updatable set of the given expected size.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty updatable set of the given expected size

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set containing the elements in the specified iterable.

If the specified iterable is a Set the expectedSize argument is ignored.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterable whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set of the elements of the specified iterable

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4,
                                     @Nonnull
                                     Iterable<Short> elems5,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
elems5 - the fifth source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterator<Short> elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set containing the elements traversed by the specified iterator.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterator from which elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set containing the elements traversed by the specified iterator

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Consumer<ShortConsumer> elementsSupplier,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elementsSupplier - the function which supply mappings for the returned set via the callback passed in
expectedSize - the expected size of the returned set
Returns:
a new updatable set of elements consumed by the callback within the given closure

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     short[] elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set of elements from the given array

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Short[] elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new updatable set of elements from the given array

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elements)
Description copied from interface: ShortSetFactory
Constructs a new updatable set containing the elements in the specified iterable.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterable whose elements are to be placed into the returned set
Returns:
a new updatable set of the elements of the specified iterable

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4,
                                     @Nonnull
                                     Iterable<Short> elems5)
Description copied from interface: ShortSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
elems5 - the fifth source of elements for the returned set
Returns:
a new updatable set which merge the elements of the specified iterables

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Iterator<Short> elements)
Description copied from interface: ShortSetFactory
Constructs a new updatable set containing the elements traversed by the specified iterator.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterator from which elements are to be placed into the returned set
Returns:
a new updatable set containing the elements traversed by the specified iterator

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Consumer<ShortConsumer> elementsSupplier)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elementsSupplier - the function which supply mappings for the returned set via the callback passed in
Returns:
a new updatable set of elements consumed by the callback within the given closure

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     short[] elements)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
Returns:
a new updatable set of elements from the given array

newUpdatableSet

@Nonnull
HashShortSet newUpdatableSet(@Nonnull
                                     Short[] elements)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
Returns:
a new updatable set of elements from the given array

newUpdatableSetOf

@Nonnull
HashShortSet newUpdatableSetOf(short e1)
Description copied from interface: ShortSetFactory
Constructs a new updatable singleton set of the given element.

Specified by:
newUpdatableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the sole element
Returns:
a new updatable singleton set of the given element

newUpdatableSetOf

@Nonnull
HashShortSet newUpdatableSetOf(short e1,
                                       short e2)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of the two specified elements.

Specified by:
newUpdatableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
Returns:
a new updatable set of the two specified elements

newUpdatableSetOf

@Nonnull
HashShortSet newUpdatableSetOf(short e1,
                                       short e2,
                                       short e3)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of the three specified elements.

Specified by:
newUpdatableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
Returns:
a new updatable set of the three specified elements

newUpdatableSetOf

@Nonnull
HashShortSet newUpdatableSetOf(short e1,
                                       short e2,
                                       short e3,
                                       short e4)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of the four specified elements.

Specified by:
newUpdatableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
e4 - the fourth element
Returns:
a new updatable set of the four specified elements

newUpdatableSetOf

@Nonnull
HashShortSet newUpdatableSetOf(short e1,
                                       short e2,
                                       short e3,
                                       short e4,
                                       short e5,
                                       short... restElements)
Description copied from interface: ShortSetFactory
Constructs a new updatable set of the specified elements.

Specified by:
newUpdatableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
e4 - the fourth element
e5 - the fifth element
restElements - the rest elements to be placed into the set
Returns:
a new updatable set of the specified elements

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set containing the elements in the specified iterable.

If the specified iterable is a Set the expectedSize argument is ignored.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterable whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set of the elements of the specified iterable

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4,
                                     @Nonnull
                                     Iterable<Short> elems5,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
elems5 - the fifth source of elements for the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterator<Short> elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set containing the elements traversed by the specified iterator.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterator from which elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set containing the elements traversed by the specified iterator

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Consumer<ShortConsumer> elementsSupplier,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elementsSupplier - the function which supply mappings for the returned set via the callback passed in
expectedSize - the expected size of the returned set
Returns:
a new immutable set of elements consumed by the callback within the given closure

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     short[] elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set of elements from the given array

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Short[] elements,
                                     int expectedSize)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
expectedSize - the expected size of the returned set
Returns:
a new immutable set of elements from the given array

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elements)
Description copied from interface: ShortSetFactory
Constructs a new immutable set containing the elements in the specified iterable.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterable whose elements are to be placed into the returned set
Returns:
a new immutable set of the elements of the specified iterable

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterable<Short> elems1,
                                     @Nonnull
                                     Iterable<Short> elems2,
                                     @Nonnull
                                     Iterable<Short> elems3,
                                     @Nonnull
                                     Iterable<Short> elems4,
                                     @Nonnull
                                     Iterable<Short> elems5)
Description copied from interface: ShortSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elems1 - the first source of elements for the returned set
elems2 - the second source of elements for the returned set
elems3 - the third source of elements for the returned set
elems4 - the fourth source of elements for the returned set
elems5 - the fifth source of elements for the returned set
Returns:
a new immutable set which merge the elements of the specified iterables

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Iterator<Short> elements)
Description copied from interface: ShortSetFactory
Constructs a new immutable set containing the elements traversed by the specified iterator.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the iterator from which elements are to be placed into the returned set
Returns:
a new immutable set containing the elements traversed by the specified iterator

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Consumer<ShortConsumer> elementsSupplier)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elementsSupplier - the function which supply mappings for the returned set via the callback passed in
Returns:
a new immutable set of elements consumed by the callback within the given closure

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     short[] elements)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
Returns:
a new immutable set of elements from the given array

newImmutableSet

@Nonnull
HashShortSet newImmutableSet(@Nonnull
                                     Short[] elements)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface ShortSetFactory<HashShortSetFactory>
Parameters:
elements - the array whose elements are to be placed into the returned set
Returns:
a new immutable set of elements from the given array

newImmutableSetOf

@Nonnull
HashShortSet newImmutableSetOf(short e1)
Description copied from interface: ShortSetFactory
Constructs a new immutable singleton set of the given element.

Specified by:
newImmutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the sole element
Returns:
a new immutable singleton set of the given element

newImmutableSetOf

@Nonnull
HashShortSet newImmutableSetOf(short e1,
                                       short e2)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of the two specified elements.

Specified by:
newImmutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
Returns:
a new immutable set of the two specified elements

newImmutableSetOf

@Nonnull
HashShortSet newImmutableSetOf(short e1,
                                       short e2,
                                       short e3)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of the three specified elements.

Specified by:
newImmutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
Returns:
a new immutable set of the three specified elements

newImmutableSetOf

@Nonnull
HashShortSet newImmutableSetOf(short e1,
                                       short e2,
                                       short e3,
                                       short e4)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of the four specified elements.

Specified by:
newImmutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
e4 - the fourth element
Returns:
a new immutable set of the four specified elements

newImmutableSetOf

@Nonnull
HashShortSet newImmutableSetOf(short e1,
                                       short e2,
                                       short e3,
                                       short e4,
                                       short e5,
                                       short... restElements)
Description copied from interface: ShortSetFactory
Constructs a new immutable set of the specified elements.

Specified by:
newImmutableSetOf in interface ShortSetFactory<HashShortSetFactory>
Parameters:
e1 - the first element
e2 - the second element
e3 - the third element
e4 - the fourth element
e5 - the fifth element
restElements - the rest elements to be placed into the set
Returns:
a new immutable set of the specified elements