com.koloboke.collect.set
Interface IntSetFactory<F extends IntSetFactory<F>>

Type Parameters:
F - the concrete factory type which extends this interface
All Superinterfaces:
ContainerFactory<F>
All Known Subinterfaces:
HashIntSetFactory

public interface IntSetFactory<F extends IntSetFactory<F>>
extends ContainerFactory<F>

An immutable factory of IntSets.

See Also:
IntSet, @KolobokeSet

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

Method Detail

newMutableSet

@Nonnull
IntSet newMutableSet()
Constructs a new empty mutable set of the default expected size.

Returns:
a new empty mutable set

newMutableSet

@Nonnull
IntSet newMutableSet(int expectedSize)
Constructs a new empty mutable set of the given expected size.

Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty mutable set of the given expected size

newMutableSet

@Nonnull
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elements,
                             int expectedSize)
Constructs a new mutable set containing the elements in the specified iterable.

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

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
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elems1,
                             @Nonnull
                             Iterable<Integer> elems2,
                             int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.

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
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elems1,
                             @Nonnull
                             Iterable<Integer> elems2,
                             @Nonnull
                             Iterable<Integer> elems3,
                             int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.

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
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elems1,
                             @Nonnull
                             Iterable<Integer> elems2,
                             @Nonnull
                             Iterable<Integer> elems3,
                             @Nonnull
                             Iterable<Integer> elems4,
                             int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.

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

IntSet newMutableSet(@Nonnull
                     Iterable<Integer> elems1,
                     @Nonnull
                     Iterable<Integer> elems2,
                     @Nonnull
                     Iterable<Integer> elems3,
                     @Nonnull
                     Iterable<Integer> elems4,
                     @Nonnull
                     Iterable<Integer> elems5,
                     int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.

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
IntSet newMutableSet(@Nonnull
                             Iterator<Integer> elements,
                             int expectedSize)
Constructs a new mutable set containing the elements traversed by the specified iterator.

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
IntSet newMutableSet(@Nonnull
                             Consumer<IntConsumer> elementsSupplier,
                             int expectedSize)
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

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
IntSet newMutableSet(@Nonnull
                             int[] elements,
                             int expectedSize)
Constructs a new mutable set of elements from the given array.

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
IntSet newMutableSet(@Nonnull
                             Integer[] elements,
                             int expectedSize)
Constructs a new mutable set of elements from the given array.

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
Throws:
NullPointerException - if elements array contain null elements

newMutableSet

@Nonnull
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elements)
Constructs a new mutable set containing the elements in the specified iterable.

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
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elems1,
                             @Nonnull
                             Iterable<Integer> elems2)
Constructs a new mutable set which merge the elements of the specified iterables.

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
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elems1,
                             @Nonnull
                             Iterable<Integer> elems2,
                             @Nonnull
                             Iterable<Integer> elems3)
Constructs a new mutable set which merge the elements of the specified iterables.

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
IntSet newMutableSet(@Nonnull
                             Iterable<Integer> elems1,
                             @Nonnull
                             Iterable<Integer> elems2,
                             @Nonnull
                             Iterable<Integer> elems3,
                             @Nonnull
                             Iterable<Integer> elems4)
Constructs a new mutable set which merge the elements of the specified iterables.

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

IntSet newMutableSet(@Nonnull
                     Iterable<Integer> elems1,
                     @Nonnull
                     Iterable<Integer> elems2,
                     @Nonnull
                     Iterable<Integer> elems3,
                     @Nonnull
                     Iterable<Integer> elems4,
                     @Nonnull
                     Iterable<Integer> elems5)
Constructs a new mutable set which merge the elements of the specified iterables.

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
IntSet newMutableSet(@Nonnull
                             Iterator<Integer> elements)
Constructs a new mutable set containing the elements traversed by the specified iterator.

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
IntSet newMutableSet(@Nonnull
                             Consumer<IntConsumer> elementsSupplier)
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

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
IntSet newMutableSet(@Nonnull
                             int[] elements)
Constructs a new mutable set of elements from the given array.

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
IntSet newMutableSet(@Nonnull
                             Integer[] elements)
Constructs a new mutable set of elements from the given array.

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
Throws:
NullPointerException - if elements array contain null elements

newMutableSetOf

@Nonnull
IntSet newMutableSetOf(int e1)
Constructs a new mutable singleton set of the given element.

Parameters:
e1 - the sole element
Returns:
a new mutable singleton set of the given element

newMutableSetOf

@Nonnull
IntSet newMutableSetOf(int e1,
                               int e2)
Constructs a new mutable set of the two specified elements.

Parameters:
e1 - the first element
e2 - the second element
Returns:
a new mutable set of the two specified elements

newMutableSetOf

@Nonnull
IntSet newMutableSetOf(int e1,
                               int e2,
                               int e3)
Constructs a new mutable set of the three specified elements.

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
IntSet newMutableSetOf(int e1,
                               int e2,
                               int e3,
                               int e4)
Constructs a new mutable set of the four specified elements.

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
IntSet newMutableSetOf(int e1,
                               int e2,
                               int e3,
                               int e4,
                               int e5,
                               int... restElements)
Constructs a new mutable set of the specified elements.

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
IntSet newUpdatableSet()
Constructs a new empty updatable set of the default expected size.

Returns:
a new empty updatable set

newUpdatableSet

@Nonnull
IntSet newUpdatableSet(int expectedSize)
Constructs a new empty updatable set of the given expected size.

Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty updatable set of the given expected size

newUpdatableSet

@Nonnull
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elements,
                               int expectedSize)
Constructs a new updatable set containing the elements in the specified iterable.

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

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
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.

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
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3,
                               int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.

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
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3,
                               @Nonnull
                               Iterable<Integer> elems4,
                               int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.

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

IntSet newUpdatableSet(@Nonnull
                       Iterable<Integer> elems1,
                       @Nonnull
                       Iterable<Integer> elems2,
                       @Nonnull
                       Iterable<Integer> elems3,
                       @Nonnull
                       Iterable<Integer> elems4,
                       @Nonnull
                       Iterable<Integer> elems5,
                       int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.

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
IntSet newUpdatableSet(@Nonnull
                               Iterator<Integer> elements,
                               int expectedSize)
Constructs a new updatable set containing the elements traversed by the specified iterator.

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
IntSet newUpdatableSet(@Nonnull
                               Consumer<IntConsumer> elementsSupplier,
                               int expectedSize)
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

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
IntSet newUpdatableSet(@Nonnull
                               int[] elements,
                               int expectedSize)
Constructs a new updatable set of elements from the given array.

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
IntSet newUpdatableSet(@Nonnull
                               Integer[] elements,
                               int expectedSize)
Constructs a new updatable set of elements from the given array.

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
Throws:
NullPointerException - if elements array contain null elements

newUpdatableSet

@Nonnull
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elements)
Constructs a new updatable set containing the elements in the specified iterable.

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
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2)
Constructs a new updatable set which merge the elements of the specified iterables.

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
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3)
Constructs a new updatable set which merge the elements of the specified iterables.

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
IntSet newUpdatableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3,
                               @Nonnull
                               Iterable<Integer> elems4)
Constructs a new updatable set which merge the elements of the specified iterables.

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

IntSet newUpdatableSet(@Nonnull
                       Iterable<Integer> elems1,
                       @Nonnull
                       Iterable<Integer> elems2,
                       @Nonnull
                       Iterable<Integer> elems3,
                       @Nonnull
                       Iterable<Integer> elems4,
                       @Nonnull
                       Iterable<Integer> elems5)
Constructs a new updatable set which merge the elements of the specified iterables.

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
IntSet newUpdatableSet(@Nonnull
                               Iterator<Integer> elements)
Constructs a new updatable set containing the elements traversed by the specified iterator.

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
IntSet newUpdatableSet(@Nonnull
                               Consumer<IntConsumer> elementsSupplier)
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

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
IntSet newUpdatableSet(@Nonnull
                               int[] elements)
Constructs a new updatable set of elements from the given array.

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
IntSet newUpdatableSet(@Nonnull
                               Integer[] elements)
Constructs a new updatable set of elements from the given array.

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
Throws:
NullPointerException - if elements array contain null elements

newUpdatableSetOf

@Nonnull
IntSet newUpdatableSetOf(int e1)
Constructs a new updatable singleton set of the given element.

Parameters:
e1 - the sole element
Returns:
a new updatable singleton set of the given element

newUpdatableSetOf

@Nonnull
IntSet newUpdatableSetOf(int e1,
                                 int e2)
Constructs a new updatable set of the two specified elements.

Parameters:
e1 - the first element
e2 - the second element
Returns:
a new updatable set of the two specified elements

newUpdatableSetOf

@Nonnull
IntSet newUpdatableSetOf(int e1,
                                 int e2,
                                 int e3)
Constructs a new updatable set of the three specified elements.

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
IntSet newUpdatableSetOf(int e1,
                                 int e2,
                                 int e3,
                                 int e4)
Constructs a new updatable set of the four specified elements.

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
IntSet newUpdatableSetOf(int e1,
                                 int e2,
                                 int e3,
                                 int e4,
                                 int e5,
                                 int... restElements)
Constructs a new updatable set of the specified elements.

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
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elements,
                               int expectedSize)
Constructs a new immutable set containing the elements in the specified iterable.

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

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
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.

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
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3,
                               int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.

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
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3,
                               @Nonnull
                               Iterable<Integer> elems4,
                               int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.

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

IntSet newImmutableSet(@Nonnull
                       Iterable<Integer> elems1,
                       @Nonnull
                       Iterable<Integer> elems2,
                       @Nonnull
                       Iterable<Integer> elems3,
                       @Nonnull
                       Iterable<Integer> elems4,
                       @Nonnull
                       Iterable<Integer> elems5,
                       int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.

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
IntSet newImmutableSet(@Nonnull
                               Iterator<Integer> elements,
                               int expectedSize)
Constructs a new immutable set containing the elements traversed by the specified iterator.

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
IntSet newImmutableSet(@Nonnull
                               Consumer<IntConsumer> elementsSupplier,
                               int expectedSize)
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

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
IntSet newImmutableSet(@Nonnull
                               int[] elements,
                               int expectedSize)
Constructs a new immutable set of elements from the given array.

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
IntSet newImmutableSet(@Nonnull
                               Integer[] elements,
                               int expectedSize)
Constructs a new immutable set of elements from the given array.

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
Throws:
NullPointerException - if elements array contain null elements

newImmutableSet

@Nonnull
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elements)
Constructs a new immutable set containing the elements in the specified iterable.

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
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2)
Constructs a new immutable set which merge the elements of the specified iterables.

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
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3)
Constructs a new immutable set which merge the elements of the specified iterables.

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
IntSet newImmutableSet(@Nonnull
                               Iterable<Integer> elems1,
                               @Nonnull
                               Iterable<Integer> elems2,
                               @Nonnull
                               Iterable<Integer> elems3,
                               @Nonnull
                               Iterable<Integer> elems4)
Constructs a new immutable set which merge the elements of the specified iterables.

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

IntSet newImmutableSet(@Nonnull
                       Iterable<Integer> elems1,
                       @Nonnull
                       Iterable<Integer> elems2,
                       @Nonnull
                       Iterable<Integer> elems3,
                       @Nonnull
                       Iterable<Integer> elems4,
                       @Nonnull
                       Iterable<Integer> elems5)
Constructs a new immutable set which merge the elements of the specified iterables.

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
IntSet newImmutableSet(@Nonnull
                               Iterator<Integer> elements)
Constructs a new immutable set containing the elements traversed by the specified iterator.

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
IntSet newImmutableSet(@Nonnull
                               Consumer<IntConsumer> elementsSupplier)
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

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
IntSet newImmutableSet(@Nonnull
                               int[] elements)
Constructs a new immutable set of elements from the given array.

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
IntSet newImmutableSet(@Nonnull
                               Integer[] elements)
Constructs a new immutable set of elements from the given array.

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
Throws:
NullPointerException - if elements array contain null elements

newImmutableSetOf

@Nonnull
IntSet newImmutableSetOf(int e1)
Constructs a new immutable singleton set of the given element.

Parameters:
e1 - the sole element
Returns:
a new immutable singleton set of the given element

newImmutableSetOf

@Nonnull
IntSet newImmutableSetOf(int e1,
                                 int e2)
Constructs a new immutable set of the two specified elements.

Parameters:
e1 - the first element
e2 - the second element
Returns:
a new immutable set of the two specified elements

newImmutableSetOf

@Nonnull
IntSet newImmutableSetOf(int e1,
                                 int e2,
                                 int e3)
Constructs a new immutable set of the three specified elements.

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
IntSet newImmutableSetOf(int e1,
                                 int e2,
                                 int e3,
                                 int e4)
Constructs a new immutable set of the four specified elements.

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
IntSet newImmutableSetOf(int e1,
                                 int e2,
                                 int e3,
                                 int e4,
                                 int e5,
                                 int... restElements)
Constructs a new immutable set of the specified elements.

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