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

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

public interface DoubleSetFactory<F extends DoubleSetFactory<F>>
extends ContainerFactory<F>

An immutable factory of DoubleSets.

See Also:
DoubleSet, @KolobokeSet

Method Summary
 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.
 
Methods inherited from interface com.koloboke.collect.ContainerFactory
getDefaultExpectedSize, withDefaultExpectedSize
 

Method Detail

newMutableSet

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

Returns:
a new empty mutable set

newMutableSet

@Nonnull
DoubleSet 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> elems1,
                                @Nonnull
                                Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> elems1,
                                @Nonnull
                                Iterable<Double> elems2,
                                @Nonnull
                                Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> elems1,
                                @Nonnull
                                Iterable<Double> elems2,
                                @Nonnull
                                Iterable<Double> elems3,
                                @Nonnull
                                Iterable<Double> 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

DoubleSet newMutableSet(@Nonnull
                        Iterable<Double> elems1,
                        @Nonnull
                        Iterable<Double> elems2,
                        @Nonnull
                        Iterable<Double> elems3,
                        @Nonnull
                        Iterable<Double> elems4,
                        @Nonnull
                        Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterator<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Consumer<DoubleConsumer> 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
DoubleSet newMutableSet(@Nonnull
                                double[] 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
DoubleSet newMutableSet(@Nonnull
                                Double[] 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> elems1,
                                @Nonnull
                                Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> elems1,
                                @Nonnull
                                Iterable<Double> elems2,
                                @Nonnull
                                Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterable<Double> elems1,
                                @Nonnull
                                Iterable<Double> elems2,
                                @Nonnull
                                Iterable<Double> elems3,
                                @Nonnull
                                Iterable<Double> 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

DoubleSet newMutableSet(@Nonnull
                        Iterable<Double> elems1,
                        @Nonnull
                        Iterable<Double> elems2,
                        @Nonnull
                        Iterable<Double> elems3,
                        @Nonnull
                        Iterable<Double> elems4,
                        @Nonnull
                        Iterable<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Iterator<Double> 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
DoubleSet newMutableSet(@Nonnull
                                Consumer<DoubleConsumer> 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
DoubleSet newMutableSet(@Nonnull
                                double[] 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
DoubleSet newMutableSet(@Nonnull
                                Double[] 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
DoubleSet newMutableSetOf(double 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
DoubleSet newMutableSetOf(double e1,
                                  double 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
DoubleSet newMutableSetOf(double e1,
                                  double e2,
                                  double 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
DoubleSet newMutableSetOf(double e1,
                                  double e2,
                                  double e3,
                                  double 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
DoubleSet newMutableSetOf(double e1,
                                  double e2,
                                  double e3,
                                  double e4,
                                  double e5,
                                  double... 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
DoubleSet newUpdatableSet()
Constructs a new empty updatable set of the default expected size.

Returns:
a new empty updatable set

newUpdatableSet

@Nonnull
DoubleSet 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> elems3,
                                  @Nonnull
                                  Iterable<Double> 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

DoubleSet newUpdatableSet(@Nonnull
                          Iterable<Double> elems1,
                          @Nonnull
                          Iterable<Double> elems2,
                          @Nonnull
                          Iterable<Double> elems3,
                          @Nonnull
                          Iterable<Double> elems4,
                          @Nonnull
                          Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterator<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Consumer<DoubleConsumer> 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
DoubleSet newUpdatableSet(@Nonnull
                                  double[] 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
DoubleSet newUpdatableSet(@Nonnull
                                  Double[] 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> elems3,
                                  @Nonnull
                                  Iterable<Double> 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

DoubleSet newUpdatableSet(@Nonnull
                          Iterable<Double> elems1,
                          @Nonnull
                          Iterable<Double> elems2,
                          @Nonnull
                          Iterable<Double> elems3,
                          @Nonnull
                          Iterable<Double> elems4,
                          @Nonnull
                          Iterable<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Iterator<Double> 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
DoubleSet newUpdatableSet(@Nonnull
                                  Consumer<DoubleConsumer> 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
DoubleSet newUpdatableSet(@Nonnull
                                  double[] 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
DoubleSet newUpdatableSet(@Nonnull
                                  Double[] 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
DoubleSet newUpdatableSetOf(double 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
DoubleSet newUpdatableSetOf(double e1,
                                    double 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
DoubleSet newUpdatableSetOf(double e1,
                                    double e2,
                                    double 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
DoubleSet newUpdatableSetOf(double e1,
                                    double e2,
                                    double e3,
                                    double 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
DoubleSet newUpdatableSetOf(double e1,
                                    double e2,
                                    double e3,
                                    double e4,
                                    double e5,
                                    double... 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> elems3,
                                  @Nonnull
                                  Iterable<Double> 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

DoubleSet newImmutableSet(@Nonnull
                          Iterable<Double> elems1,
                          @Nonnull
                          Iterable<Double> elems2,
                          @Nonnull
                          Iterable<Double> elems3,
                          @Nonnull
                          Iterable<Double> elems4,
                          @Nonnull
                          Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterator<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Consumer<DoubleConsumer> 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
DoubleSet newImmutableSet(@Nonnull
                                  double[] 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
DoubleSet newImmutableSet(@Nonnull
                                  Double[] 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterable<Double> elems1,
                                  @Nonnull
                                  Iterable<Double> elems2,
                                  @Nonnull
                                  Iterable<Double> elems3,
                                  @Nonnull
                                  Iterable<Double> 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

DoubleSet newImmutableSet(@Nonnull
                          Iterable<Double> elems1,
                          @Nonnull
                          Iterable<Double> elems2,
                          @Nonnull
                          Iterable<Double> elems3,
                          @Nonnull
                          Iterable<Double> elems4,
                          @Nonnull
                          Iterable<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Iterator<Double> 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
DoubleSet newImmutableSet(@Nonnull
                                  Consumer<DoubleConsumer> 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
DoubleSet newImmutableSet(@Nonnull
                                  double[] 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
DoubleSet newImmutableSet(@Nonnull
                                  Double[] 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
DoubleSet newImmutableSetOf(double 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
DoubleSet newImmutableSetOf(double e1,
                                    double 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
DoubleSet newImmutableSetOf(double e1,
                                    double e2,
                                    double 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
DoubleSet newImmutableSetOf(double e1,
                                    double e2,
                                    double e3,
                                    double 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
DoubleSet newImmutableSetOf(double e1,
                                    double e2,
                                    double e3,
                                    double e4,
                                    double e5,
                                    double... 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