F
- the concrete factory type which extends this interfacepublic interface IntSetFactory<F extends IntSetFactory<F>> extends ContainerFactory<F>
IntSet
s.IntSet
,
@KolobokeSet
Modifier and Type | Method and Description |
---|---|
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.
|
getDefaultExpectedSize, withDefaultExpectedSize
@Nonnull IntSet newMutableSet()
@Nonnull IntSet newMutableSet(int expectedSize)
expectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize
argument is ignored.
elements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned setIntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, @Nonnull Iterable<Integer> elems5, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterator<Integer> elements, int expectedSize)
elements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull Consumer<IntConsumer> elementsSupplier, int expectedSize)
Example: TODO
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull int[] elements, int expectedSize)
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newMutableSet(@Nonnull Integer[] elements, int expectedSize)
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned setNullPointerException
- if elements
array contain null
elements@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elements)
elements
- the iterable whose elements are to be placed into the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setIntSet newMutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, @Nonnull Iterable<Integer> elems5)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull IntSet newMutableSet(@Nonnull Iterator<Integer> elements)
elements
- the iterator from which elements are to be placed into the returned set@Nonnull IntSet newMutableSet(@Nonnull Consumer<IntConsumer> elementsSupplier)
Example: TODO
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull IntSet newMutableSet(@Nonnull int[] elements)
elements
- the array whose elements are to be placed into the returned set@Nonnull IntSet newMutableSet(@Nonnull Integer[] elements)
elements
- the array whose elements are to be placed into the returned setNullPointerException
- if elements
array contain null
elements@Nonnull IntSet newMutableSetOf(int e1)
e1
- the sole element@Nonnull IntSet newMutableSetOf(int e1, int e2)
e1
- the first elemente2
- the second element@Nonnull IntSet newMutableSetOf(int e1, int e2, int e3)
e1
- the first elemente2
- the second elemente3
- the third element@Nonnull IntSet newMutableSetOf(int e1, int e2, int e3, int e4)
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull IntSet newMutableSetOf(int e1, int e2, int e3, int e4, int e5, int... restElements)
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set@Nonnull IntSet newUpdatableSet()
@Nonnull IntSet newUpdatableSet(int expectedSize)
expectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize
argument is ignored.
elements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned setIntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, @Nonnull Iterable<Integer> elems5, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterator<Integer> elements, int expectedSize)
elements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Consumer<IntConsumer> elementsSupplier, int expectedSize)
Example: TODO
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull int[] elements, int expectedSize)
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Integer[] elements, int expectedSize)
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned setNullPointerException
- if elements
array contain null
elements@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elements)
elements
- the iterable whose elements are to be placed into the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setIntSet newUpdatableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, @Nonnull Iterable<Integer> elems5)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Iterator<Integer> elements)
elements
- the iterator from which elements are to be placed into the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Consumer<IntConsumer> elementsSupplier)
Example: TODO
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull IntSet newUpdatableSet(@Nonnull int[] elements)
elements
- the array whose elements are to be placed into the returned set@Nonnull IntSet newUpdatableSet(@Nonnull Integer[] elements)
elements
- the array whose elements are to be placed into the returned setNullPointerException
- if elements
array contain null
elements@Nonnull IntSet newUpdatableSetOf(int e1)
e1
- the sole element@Nonnull IntSet newUpdatableSetOf(int e1, int e2)
e1
- the first elemente2
- the second element@Nonnull IntSet newUpdatableSetOf(int e1, int e2, int e3)
e1
- the first elemente2
- the second elemente3
- the third element@Nonnull IntSet newUpdatableSetOf(int e1, int e2, int e3, int e4)
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull IntSet newUpdatableSetOf(int e1, int e2, int e3, int e4, int e5, int... restElements)
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize
argument is ignored.
elements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned setIntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, @Nonnull Iterable<Integer> elems5, int expectedSize)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterator<Integer> elements, int expectedSize)
elements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newImmutableSet(@Nonnull Consumer<IntConsumer> elementsSupplier, int expectedSize)
Example: TODO
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull IntSet newImmutableSet(@Nonnull int[] elements, int expectedSize)
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull IntSet newImmutableSet(@Nonnull Integer[] elements, int expectedSize)
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned setNullPointerException
- if elements
array contain null
elements@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elements)
elements
- the iterable whose elements are to be placed into the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setIntSet newImmutableSet(@Nonnull Iterable<Integer> elems1, @Nonnull Iterable<Integer> elems2, @Nonnull Iterable<Integer> elems3, @Nonnull Iterable<Integer> elems4, @Nonnull Iterable<Integer> elems5)
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull IntSet newImmutableSet(@Nonnull Iterator<Integer> elements)
elements
- the iterator from which elements are to be placed into the returned set@Nonnull IntSet newImmutableSet(@Nonnull Consumer<IntConsumer> elementsSupplier)
Example: TODO
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull IntSet newImmutableSet(@Nonnull int[] elements)
elements
- the array whose elements are to be placed into the returned set@Nonnull IntSet newImmutableSet(@Nonnull Integer[] elements)
elements
- the array whose elements are to be placed into the returned setNullPointerException
- if elements
array contain null
elements@Nonnull IntSet newImmutableSetOf(int e1)
e1
- the sole element@Nonnull IntSet newImmutableSetOf(int e1, int e2)
e1
- the first elemente2
- the second element@Nonnull IntSet newImmutableSetOf(int e1, int e2, int e3)
e1
- the first elemente2
- the second elemente3
- the third element@Nonnull IntSet newImmutableSetOf(int e1, int e2, int e3, int e4)
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull IntSet newImmutableSetOf(int e1, int e2, int e3, int e4, int e5, int... restElements)
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set