com.koloboke.collect.set.hash
Interface HashDoubleSetFactory

All Superinterfaces:
ContainerFactory<HashDoubleSetFactory>, DoubleSetFactory<HashDoubleSetFactory>, HashContainerFactory<HashDoubleSetFactory>

public interface HashDoubleSetFactory
extends DoubleSetFactory<HashDoubleSetFactory>, HashContainerFactory<HashDoubleSetFactory>

An immutable factory of HashDoubleSets.

See Also:
HashDoubleSet, HashDoubleSets.getDefaultFactory(), @KolobokeSet

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

Method Detail

newMutableSet

@Nonnull
HashDoubleSet newMutableSet()
Description copied from interface: DoubleSetFactory
Constructs a new empty mutable set of the default expected size.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
Returns:
a new empty mutable set

newMutableSet

@Nonnull
HashDoubleSet newMutableSet(int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new empty mutable set of the given expected size.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty mutable set of the given expected size

newMutableSet

@Nonnull
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elements,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set containing the elements in the specified iterable.

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

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2,
                                    @Nonnull
                                    Iterable<Double> elems3,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2,
                                    @Nonnull
                                    Iterable<Double> elems3,
                                    @Nonnull
                                    Iterable<Double> elems4,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

@Nonnull
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2,
                                    @Nonnull
                                    Iterable<Double> elems3,
                                    @Nonnull
                                    Iterable<Double> elems4,
                                    @Nonnull
                                    Iterable<Double> elems5,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterator<Double> elements,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set containing the elements traversed by the specified iterator.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Consumer<DoubleConsumer> elementsSupplier,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    double[] elements,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Double[] elements,
                                    int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elements)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set containing the elements in the specified iterable.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2,
                                    @Nonnull
                                    Iterable<Double> elems3)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2,
                                    @Nonnull
                                    Iterable<Double> elems3,
                                    @Nonnull
                                    Iterable<Double> elems4)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

@Nonnull
HashDoubleSet newMutableSet(@Nonnull
                                    Iterable<Double> elems1,
                                    @Nonnull
                                    Iterable<Double> elems2,
                                    @Nonnull
                                    Iterable<Double> elems3,
                                    @Nonnull
                                    Iterable<Double> elems4,
                                    @Nonnull
                                    Iterable<Double> elems5)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set which merge the elements of the specified iterables.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Iterator<Double> elements)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set containing the elements traversed by the specified iterator.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Consumer<DoubleConsumer> elementsSupplier)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    double[] elements)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSet(@Nonnull
                                    Double[] elements)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of elements from the given array.

Specified by:
newMutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

newMutableSetOf

@Nonnull
HashDoubleSet newMutableSetOf(double e1)
Description copied from interface: DoubleSetFactory
Constructs a new mutable singleton set of the given element.

Specified by:
newMutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
e1 - the sole element
Returns:
a new mutable singleton set of the given element

newMutableSetOf

@Nonnull
HashDoubleSet newMutableSetOf(double e1,
                                      double e2)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of the two specified elements.

Specified by:
newMutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
e1 - the first element
e2 - the second element
Returns:
a new mutable set of the two specified elements

newMutableSetOf

@Nonnull
HashDoubleSet newMutableSetOf(double e1,
                                      double e2,
                                      double e3)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of the three specified elements.

Specified by:
newMutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSetOf(double e1,
                                      double e2,
                                      double e3,
                                      double e4)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of the four specified elements.

Specified by:
newMutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newMutableSetOf(double e1,
                                      double e2,
                                      double e3,
                                      double e4,
                                      double e5,
                                      double... restElements)
Description copied from interface: DoubleSetFactory
Constructs a new mutable set of the specified elements.

Specified by:
newMutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet()
Description copied from interface: DoubleSetFactory
Constructs a new empty updatable set of the default expected size.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
Returns:
a new empty updatable set

newUpdatableSet

@Nonnull
HashDoubleSet newUpdatableSet(int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new empty updatable set of the given expected size.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty updatable set of the given expected size

newUpdatableSet

@Nonnull
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set containing the elements in the specified iterable.

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

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

@Nonnull
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4,
                                      @Nonnull
                                      Iterable<Double> elems5,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterator<Double> elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set containing the elements traversed by the specified iterator.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Consumer<DoubleConsumer> elementsSupplier,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      double[] elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Double[] elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elements)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set containing the elements in the specified iterable.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

@Nonnull
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4,
                                      @Nonnull
                                      Iterable<Double> elems5)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set which merge the elements of the specified iterables.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Iterator<Double> elements)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set containing the elements traversed by the specified iterator.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Consumer<DoubleConsumer> elementsSupplier)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      double[] elements)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSet(@Nonnull
                                      Double[] elements)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of elements from the given array.

Specified by:
newUpdatableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

newUpdatableSetOf

@Nonnull
HashDoubleSet newUpdatableSetOf(double e1)
Description copied from interface: DoubleSetFactory
Constructs a new updatable singleton set of the given element.

Specified by:
newUpdatableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
e1 - the sole element
Returns:
a new updatable singleton set of the given element

newUpdatableSetOf

@Nonnull
HashDoubleSet newUpdatableSetOf(double e1,
                                        double e2)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of the two specified elements.

Specified by:
newUpdatableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
e1 - the first element
e2 - the second element
Returns:
a new updatable set of the two specified elements

newUpdatableSetOf

@Nonnull
HashDoubleSet newUpdatableSetOf(double e1,
                                        double e2,
                                        double e3)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of the three specified elements.

Specified by:
newUpdatableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSetOf(double e1,
                                        double e2,
                                        double e3,
                                        double e4)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of the four specified elements.

Specified by:
newUpdatableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newUpdatableSetOf(double e1,
                                        double e2,
                                        double e3,
                                        double e4,
                                        double e5,
                                        double... restElements)
Description copied from interface: DoubleSetFactory
Constructs a new updatable set of the specified elements.

Specified by:
newUpdatableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set containing the elements in the specified iterable.

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

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

@Nonnull
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4,
                                      @Nonnull
                                      Iterable<Double> elems5,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterator<Double> elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set containing the elements traversed by the specified iterator.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Consumer<DoubleConsumer> elementsSupplier,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      double[] elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Double[] elements,
                                      int expectedSize)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elements)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set containing the elements in the specified iterable.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

@Nonnull
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterable<Double> elems1,
                                      @Nonnull
                                      Iterable<Double> elems2,
                                      @Nonnull
                                      Iterable<Double> elems3,
                                      @Nonnull
                                      Iterable<Double> elems4,
                                      @Nonnull
                                      Iterable<Double> elems5)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set which merge the elements of the specified iterables.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Iterator<Double> elements)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set containing the elements traversed by the specified iterator.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Consumer<DoubleConsumer> elementsSupplier)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      double[] elements)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSet(@Nonnull
                                      Double[] elements)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of elements from the given array.

Specified by:
newImmutableSet in interface DoubleSetFactory<HashDoubleSetFactory>
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

newImmutableSetOf

@Nonnull
HashDoubleSet newImmutableSetOf(double e1)
Description copied from interface: DoubleSetFactory
Constructs a new immutable singleton set of the given element.

Specified by:
newImmutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
e1 - the sole element
Returns:
a new immutable singleton set of the given element

newImmutableSetOf

@Nonnull
HashDoubleSet newImmutableSetOf(double e1,
                                        double e2)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of the two specified elements.

Specified by:
newImmutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
Parameters:
e1 - the first element
e2 - the second element
Returns:
a new immutable set of the two specified elements

newImmutableSetOf

@Nonnull
HashDoubleSet newImmutableSetOf(double e1,
                                        double e2,
                                        double e3)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of the three specified elements.

Specified by:
newImmutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSetOf(double e1,
                                        double e2,
                                        double e3,
                                        double e4)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of the four specified elements.

Specified by:
newImmutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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
HashDoubleSet newImmutableSetOf(double e1,
                                        double e2,
                                        double e3,
                                        double e4,
                                        double e5,
                                        double... restElements)
Description copied from interface: DoubleSetFactory
Constructs a new immutable set of the specified elements.

Specified by:
newImmutableSetOf in interface DoubleSetFactory<HashDoubleSetFactory>
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