net.openhft.koloboke.collect.set.hash
Interface HashLongSetFactory

All Superinterfaces:
ContainerFactory<HashLongSetFactory>, HashContainerFactory<HashLongSetFactory>, LongHashFactory<HashLongSetFactory>, LongSetFactory<HashLongSetFactory>

public interface HashLongSetFactory
extends LongSetFactory<HashLongSetFactory>, LongHashFactory<HashLongSetFactory>

An immutable factory of HashLongSets.

See Also:
HashLongSet, HashLongSets.getDefaultFactory()

Method Summary
 HashLongSet newImmutableSet(Consumer<LongConsumer> elementsSupplier)
          Constructs a new immutable set of elements consumed by the callback within the given closure.
 HashLongSet newImmutableSet(Consumer<LongConsumer> elementsSupplier, int expectedSize)
          Constructs a new immutable set of elements consumed by the callback within the given closure.
 HashLongSet newImmutableSet(Iterable<Long> elements)
          Constructs a new immutable set containing the elements in the specified iterable.
 HashLongSet newImmutableSet(Iterable<Long> elements, int expectedSize)
          Constructs a new immutable set containing the elements in the specified iterable.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2, int expectedSize)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, int expectedSize)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, int expectedSize)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, Iterable<Long> elems5)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, Iterable<Long> elems5, int expectedSize)
          Constructs a new immutable set which merge the elements of the specified iterables.
 HashLongSet newImmutableSet(Iterator<Long> elements)
          Constructs a new immutable set containing the elements traversed by the specified iterator.
 HashLongSet newImmutableSet(Iterator<Long> elements, int expectedSize)
          Constructs a new immutable set containing the elements traversed by the specified iterator.
 HashLongSet newImmutableSet(long[] elements)
          Constructs a new immutable set of elements from the given array.
 HashLongSet newImmutableSet(Long[] elements)
          Constructs a new immutable set of elements from the given array.
 HashLongSet newImmutableSet(long[] elements, int expectedSize)
          Constructs a new immutable set of elements from the given array.
 HashLongSet newImmutableSet(Long[] elements, int expectedSize)
          Constructs a new immutable set of elements from the given array.
 HashLongSet newImmutableSetOf(long e1)
          Constructs a new immutable singleton set of the given element.
 HashLongSet newImmutableSetOf(long e1, long e2)
          Constructs a new immutable set of the two specified elements.
 HashLongSet newImmutableSetOf(long e1, long e2, long e3)
          Constructs a new immutable set of the three specified elements.
 HashLongSet newImmutableSetOf(long e1, long e2, long e3, long e4)
          Constructs a new immutable set of the four specified elements.
 HashLongSet newImmutableSetOf(long e1, long e2, long e3, long e4, long e5, long... restElements)
          Constructs a new immutable set of the specified elements.
 HashLongSet newMutableSet()
          Constructs a new empty mutable set of the default expected size.
 HashLongSet newMutableSet(Consumer<LongConsumer> elementsSupplier)
          Constructs a new mutable set of elements consumed by the callback within the given closure.
 HashLongSet newMutableSet(Consumer<LongConsumer> elementsSupplier, int expectedSize)
          Constructs a new mutable set of elements consumed by the callback within the given closure.
 HashLongSet newMutableSet(int expectedSize)
          Constructs a new empty mutable set of the given expected size.
 HashLongSet newMutableSet(Iterable<Long> elements)
          Constructs a new mutable set containing the elements in the specified iterable.
 HashLongSet newMutableSet(Iterable<Long> elements, int expectedSize)
          Constructs a new mutable set containing the elements in the specified iterable.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2, int expectedSize)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, int expectedSize)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, int expectedSize)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, Iterable<Long> elems5)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, Iterable<Long> elems5, int expectedSize)
          Constructs a new mutable set which merge the elements of the specified iterables.
 HashLongSet newMutableSet(Iterator<Long> elements)
          Constructs a new mutable set containing the elements traversed by the specified iterator.
 HashLongSet newMutableSet(Iterator<Long> elements, int expectedSize)
          Constructs a new mutable set containing the elements traversed by the specified iterator.
 HashLongSet newMutableSet(long[] elements)
          Constructs a new mutable set of elements from the given array.
 HashLongSet newMutableSet(Long[] elements)
          Constructs a new mutable set of elements from the given array.
 HashLongSet newMutableSet(long[] elements, int expectedSize)
          Constructs a new mutable set of elements from the given array.
 HashLongSet newMutableSet(Long[] elements, int expectedSize)
          Constructs a new mutable set of elements from the given array.
 HashLongSet newMutableSetOf(long e1)
          Constructs a new mutable singleton set of the given element.
 HashLongSet newMutableSetOf(long e1, long e2)
          Constructs a new mutable set of the two specified elements.
 HashLongSet newMutableSetOf(long e1, long e2, long e3)
          Constructs a new mutable set of the three specified elements.
 HashLongSet newMutableSetOf(long e1, long e2, long e3, long e4)
          Constructs a new mutable set of the four specified elements.
 HashLongSet newMutableSetOf(long e1, long e2, long e3, long e4, long e5, long... restElements)
          Constructs a new mutable set of the specified elements.
 HashLongSet newUpdatableSet()
          Constructs a new empty updatable set of the default expected size.
 HashLongSet newUpdatableSet(Consumer<LongConsumer> elementsSupplier)
          Constructs a new updatable set of elements consumed by the callback within the given closure.
 HashLongSet newUpdatableSet(Consumer<LongConsumer> elementsSupplier, int expectedSize)
          Constructs a new updatable set of elements consumed by the callback within the given closure.
 HashLongSet newUpdatableSet(int expectedSize)
          Constructs a new empty updatable set of the given expected size.
 HashLongSet newUpdatableSet(Iterable<Long> elements)
          Constructs a new updatable set containing the elements in the specified iterable.
 HashLongSet newUpdatableSet(Iterable<Long> elements, int expectedSize)
          Constructs a new updatable set containing the elements in the specified iterable.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2, int expectedSize)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, int expectedSize)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, int expectedSize)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, Iterable<Long> elems5)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterable<Long> elems1, Iterable<Long> elems2, Iterable<Long> elems3, Iterable<Long> elems4, Iterable<Long> elems5, int expectedSize)
          Constructs a new updatable set which merge the elements of the specified iterables.
 HashLongSet newUpdatableSet(Iterator<Long> elements)
          Constructs a new updatable set containing the elements traversed by the specified iterator.
 HashLongSet newUpdatableSet(Iterator<Long> elements, int expectedSize)
          Constructs a new updatable set containing the elements traversed by the specified iterator.
 HashLongSet newUpdatableSet(long[] elements)
          Constructs a new updatable set of elements from the given array.
 HashLongSet newUpdatableSet(Long[] elements)
          Constructs a new updatable set of elements from the given array.
 HashLongSet newUpdatableSet(long[] elements, int expectedSize)
          Constructs a new updatable set of elements from the given array.
 HashLongSet newUpdatableSet(Long[] elements, int expectedSize)
          Constructs a new updatable set of elements from the given array.
 HashLongSet newUpdatableSetOf(long e1)
          Constructs a new updatable singleton set of the given element.
 HashLongSet newUpdatableSetOf(long e1, long e2)
          Constructs a new updatable set of the two specified elements.
 HashLongSet newUpdatableSetOf(long e1, long e2, long e3)
          Constructs a new updatable set of the three specified elements.
 HashLongSet newUpdatableSetOf(long e1, long e2, long e3, long e4)
          Constructs a new updatable set of the four specified elements.
 HashLongSet newUpdatableSetOf(long e1, long e2, long e3, long e4, long e5, long... restElements)
          Constructs a new updatable set of the specified elements.
 
Methods inherited from interface net.openhft.koloboke.collect.hash.LongHashFactory
getLowerKeyDomainBound, getUpperKeyDomainBound, withKeysDomain, withKeysDomainComplement
 
Methods inherited from interface net.openhft.koloboke.collect.hash.HashContainerFactory
getHashConfig, withHashConfig
 
Methods inherited from interface net.openhft.koloboke.collect.ContainerFactory
getDefaultExpectedSize, withDefaultExpectedSize
 

Method Detail

newMutableSet

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

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
Returns:
a new empty mutable set

newMutableSet

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

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

newMutableSet

@Nonnull
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elements,
                                  int expectedSize)
Description copied from interface: LongSetFactory
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 LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2,
                                  @Nonnull
                                  Iterable<Long> elems3,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2,
                                  @Nonnull
                                  Iterable<Long> elems3,
                                  @Nonnull
                                  Iterable<Long> elems4,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2,
                                  @Nonnull
                                  Iterable<Long> elems3,
                                  @Nonnull
                                  Iterable<Long> elems4,
                                  @Nonnull
                                  Iterable<Long> elems5,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterator<Long> elements,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set containing the elements traversed by the specified iterator.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Consumer<LongConsumer> elementsSupplier,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  long[] elements,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Long[] elements,
                                  int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elements)
Description copied from interface: LongSetFactory
Constructs a new mutable set containing the elements in the specified iterable.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2,
                                  @Nonnull
                                  Iterable<Long> elems3)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2,
                                  @Nonnull
                                  Iterable<Long> elems3,
                                  @Nonnull
                                  Iterable<Long> elems4)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterable<Long> elems1,
                                  @Nonnull
                                  Iterable<Long> elems2,
                                  @Nonnull
                                  Iterable<Long> elems3,
                                  @Nonnull
                                  Iterable<Long> elems4,
                                  @Nonnull
                                  Iterable<Long> elems5)
Description copied from interface: LongSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Iterator<Long> elements)
Description copied from interface: LongSetFactory
Constructs a new mutable set containing the elements traversed by the specified iterator.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Consumer<LongConsumer> elementsSupplier)
Description copied from interface: LongSetFactory
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  long[] elements)
Description copied from interface: LongSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSet(@Nonnull
                                  Long[] elements)
Description copied from interface: LongSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSetOf(long e1)
Description copied from interface: LongSetFactory
Constructs a new mutable singleton set of the given element.

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

newMutableSetOf

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

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

newMutableSetOf

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

Specified by:
newMutableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSetOf(long e1,
                                    long e2,
                                    long e3,
                                    long e4)
Description copied from interface: LongSetFactory
Constructs a new mutable set of the four specified elements.

Specified by:
newMutableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newMutableSetOf(long e1,
                                    long e2,
                                    long e3,
                                    long e4,
                                    long e5,
                                    long... restElements)
Description copied from interface: LongSetFactory
Constructs a new mutable set of the specified elements.

Specified by:
newMutableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet()
Description copied from interface: LongSetFactory
Constructs a new empty updatable set of the default expected size.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
Returns:
a new empty updatable set

newUpdatableSet

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

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

newUpdatableSet

@Nonnull
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
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 LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4,
                                    @Nonnull
                                    Iterable<Long> elems5,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterator<Long> elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set containing the elements traversed by the specified iterator.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Consumer<LongConsumer> elementsSupplier,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    long[] elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Long[] elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elements)
Description copied from interface: LongSetFactory
Constructs a new updatable set containing the elements in the specified iterable.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4,
                                    @Nonnull
                                    Iterable<Long> elems5)
Description copied from interface: LongSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Iterator<Long> elements)
Description copied from interface: LongSetFactory
Constructs a new updatable set containing the elements traversed by the specified iterator.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Consumer<LongConsumer> elementsSupplier)
Description copied from interface: LongSetFactory
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    long[] elements)
Description copied from interface: LongSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSet(@Nonnull
                                    Long[] elements)
Description copied from interface: LongSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSetOf(long e1)
Description copied from interface: LongSetFactory
Constructs a new updatable singleton set of the given element.

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

newUpdatableSetOf

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

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

newUpdatableSetOf

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

Specified by:
newUpdatableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSetOf(long e1,
                                      long e2,
                                      long e3,
                                      long e4)
Description copied from interface: LongSetFactory
Constructs a new updatable set of the four specified elements.

Specified by:
newUpdatableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newUpdatableSetOf(long e1,
                                      long e2,
                                      long e3,
                                      long e4,
                                      long e5,
                                      long... restElements)
Description copied from interface: LongSetFactory
Constructs a new updatable set of the specified elements.

Specified by:
newUpdatableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
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 LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4,
                                    @Nonnull
                                    Iterable<Long> elems5,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterator<Long> elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set containing the elements traversed by the specified iterator.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Consumer<LongConsumer> elementsSupplier,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    long[] elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Long[] elements,
                                    int expectedSize)
Description copied from interface: LongSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elements)
Description copied from interface: LongSetFactory
Constructs a new immutable set containing the elements in the specified iterable.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterable<Long> elems1,
                                    @Nonnull
                                    Iterable<Long> elems2,
                                    @Nonnull
                                    Iterable<Long> elems3,
                                    @Nonnull
                                    Iterable<Long> elems4,
                                    @Nonnull
                                    Iterable<Long> elems5)
Description copied from interface: LongSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Iterator<Long> elements)
Description copied from interface: LongSetFactory
Constructs a new immutable set containing the elements traversed by the specified iterator.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Consumer<LongConsumer> elementsSupplier)
Description copied from interface: LongSetFactory
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    long[] elements)
Description copied from interface: LongSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSet(@Nonnull
                                    Long[] elements)
Description copied from interface: LongSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSetOf(long e1)
Description copied from interface: LongSetFactory
Constructs a new immutable singleton set of the given element.

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

newImmutableSetOf

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

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

newImmutableSetOf

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

Specified by:
newImmutableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSetOf(long e1,
                                      long e2,
                                      long e3,
                                      long e4)
Description copied from interface: LongSetFactory
Constructs a new immutable set of the four specified elements.

Specified by:
newImmutableSetOf in interface LongSetFactory<HashLongSetFactory>
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
HashLongSet newImmutableSetOf(long e1,
                                      long e2,
                                      long e3,
                                      long e4,
                                      long e5,
                                      long... restElements)
Description copied from interface: LongSetFactory
Constructs a new immutable set of the specified elements.

Specified by:
newImmutableSetOf in interface LongSetFactory<HashLongSetFactory>
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