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