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