com.koloboke.collect.set.hash
Class HashDoubleSets

Object
  extended by com.koloboke.collect.set.hash.HashDoubleSets

public final class HashDoubleSets
extends Object

This class consists only of static factory methods to construct HashDoubleSets, and the default HashDoubleSetFactory static provider (getDefaultFactory()).

See Also:
HashDoubleSet, @KolobokeSet

Method Summary
static HashDoubleSetFactory getDefaultFactory()
          Returns the default implementation of HashDoubleSetFactory, to which all static methods in this class delegate.
static HashDoubleSet newImmutableSet(Consumer<DoubleConsumer> elementsSupplier)
          Constructs a new immutable set of elements consumed by the callback within the given closure.
static HashDoubleSet newImmutableSet(Consumer<DoubleConsumer> elementsSupplier, int expectedSize)
          Constructs a new immutable set of elements consumed by the callback within the given closure.
static HashDoubleSet newImmutableSet(double[] elements)
          Constructs a new immutable set of elements from the given array.
static HashDoubleSet newImmutableSet(Double[] elements)
          Constructs a new immutable set of elements from the given array.
static HashDoubleSet newImmutableSet(double[] elements, int expectedSize)
          Constructs a new immutable set of elements from the given array.
static HashDoubleSet newImmutableSet(Double[] elements, int expectedSize)
          Constructs a new immutable set of elements from the given array.
static HashDoubleSet newImmutableSet(Iterable<Double> elements)
          Constructs a new immutable set containing the elements in the specified iterable.
static HashDoubleSet newImmutableSet(Iterable<Double> elements, int expectedSize)
          Constructs a new immutable set containing the elements in the specified iterable.
static HashDoubleSet newImmutableSet(Iterable<Double> elems1, Iterable<Double> elems2)
          Constructs a new immutable set which merge the elements of the specified iterables.
static HashDoubleSet newImmutableSet(Iterable<Double> elems1, Iterable<Double> elems2, int expectedSize)
          Constructs a new immutable set which merge the elements of the specified iterables.
static HashDoubleSet newImmutableSet(Iterable<Double> elems1, Iterable<Double> elems2, Iterable<Double> elems3)
          Constructs a new immutable set which merge the elements of the specified iterables.
static 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.
static 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.
static 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.
static 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.
static 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.
static HashDoubleSet newImmutableSet(Iterator<Double> elements)
          Constructs a new immutable set containing the elements traversed by the specified iterator.
static HashDoubleSet newImmutableSet(Iterator<Double> elements, int expectedSize)
          Constructs a new immutable set containing the elements traversed by the specified iterator.
static HashDoubleSet newImmutableSetOf(double e1)
          Constructs a new immutable singleton set of the given element.
static HashDoubleSet newImmutableSetOf(double e1, double e2)
          Constructs a new immutable set of the two specified elements.
static HashDoubleSet newImmutableSetOf(double e1, double e2, double e3)
          Constructs a new immutable set of the three specified elements.
static HashDoubleSet newImmutableSetOf(double e1, double e2, double e3, double e4)
          Constructs a new immutable set of the four specified elements.
static HashDoubleSet newImmutableSetOf(double e1, double e2, double e3, double e4, double e5, double... restElements)
          Constructs a new immutable set of the specified elements.
static HashDoubleSet newMutableSet()
          Constructs a new empty mutable set of the default expected size.
static HashDoubleSet newMutableSet(Consumer<DoubleConsumer> elementsSupplier)
          Constructs a new mutable set of elements consumed by the callback within the given closure.
static HashDoubleSet newMutableSet(Consumer<DoubleConsumer> elementsSupplier, int expectedSize)
          Constructs a new mutable set of elements consumed by the callback within the given closure.
static HashDoubleSet newMutableSet(double[] elements)
          Constructs a new mutable set of elements from the given array.
static HashDoubleSet newMutableSet(Double[] elements)
          Constructs a new mutable set of elements from the given array.
static HashDoubleSet newMutableSet(double[] elements, int expectedSize)
          Constructs a new mutable set of elements from the given array.
static HashDoubleSet newMutableSet(Double[] elements, int expectedSize)
          Constructs a new mutable set of elements from the given array.
static HashDoubleSet newMutableSet(int expectedSize)
          Constructs a new empty mutable set of the given expected size.
static HashDoubleSet newMutableSet(Iterable<Double> elements)
          Constructs a new mutable set containing the elements in the specified iterable.
static HashDoubleSet newMutableSet(Iterable<Double> elements, int expectedSize)
          Constructs a new mutable set containing the elements in the specified iterable.
static HashDoubleSet newMutableSet(Iterable<Double> elems1, Iterable<Double> elems2)
          Constructs a new mutable set which merge the elements of the specified iterables.
static HashDoubleSet newMutableSet(Iterable<Double> elems1, Iterable<Double> elems2, int expectedSize)
          Constructs a new mutable set which merge the elements of the specified iterables.
static HashDoubleSet newMutableSet(Iterable<Double> elems1, Iterable<Double> elems2, Iterable<Double> elems3)
          Constructs a new mutable set which merge the elements of the specified iterables.
static 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.
static 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.
static 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.
static 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.
static 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.
static HashDoubleSet newMutableSet(Iterator<Double> elements)
          Constructs a new mutable set containing the elements traversed by the specified iterator.
static HashDoubleSet newMutableSet(Iterator<Double> elements, int expectedSize)
          Constructs a new mutable set containing the elements traversed by the specified iterator.
static HashDoubleSet newMutableSetOf(double e1)
          Constructs a new mutable singleton set of the given element.
static HashDoubleSet newMutableSetOf(double e1, double e2)
          Constructs a new mutable set of the two specified elements.
static HashDoubleSet newMutableSetOf(double e1, double e2, double e3)
          Constructs a new mutable set of the three specified elements.
static HashDoubleSet newMutableSetOf(double e1, double e2, double e3, double e4)
          Constructs a new mutable set of the four specified elements.
static HashDoubleSet newMutableSetOf(double e1, double e2, double e3, double e4, double e5, double... restElements)
          Constructs a new mutable set of the specified elements.
static HashDoubleSet newUpdatableSet()
          Constructs a new empty updatable set of the default expected size.
static HashDoubleSet newUpdatableSet(Consumer<DoubleConsumer> elementsSupplier)
          Constructs a new updatable set of elements consumed by the callback within the given closure.
static HashDoubleSet newUpdatableSet(Consumer<DoubleConsumer> elementsSupplier, int expectedSize)
          Constructs a new updatable set of elements consumed by the callback within the given closure.
static HashDoubleSet newUpdatableSet(double[] elements)
          Constructs a new updatable set of elements from the given array.
static HashDoubleSet newUpdatableSet(Double[] elements)
          Constructs a new updatable set of elements from the given array.
static HashDoubleSet newUpdatableSet(double[] elements, int expectedSize)
          Constructs a new updatable set of elements from the given array.
static HashDoubleSet newUpdatableSet(Double[] elements, int expectedSize)
          Constructs a new updatable set of elements from the given array.
static HashDoubleSet newUpdatableSet(int expectedSize)
          Constructs a new empty updatable set of the given expected size.
static HashDoubleSet newUpdatableSet(Iterable<Double> elements)
          Constructs a new updatable set containing the elements in the specified iterable.
static HashDoubleSet newUpdatableSet(Iterable<Double> elements, int expectedSize)
          Constructs a new updatable set containing the elements in the specified iterable.
static HashDoubleSet newUpdatableSet(Iterable<Double> elems1, Iterable<Double> elems2)
          Constructs a new updatable set which merge the elements of the specified iterables.
static HashDoubleSet newUpdatableSet(Iterable<Double> elems1, Iterable<Double> elems2, int expectedSize)
          Constructs a new updatable set which merge the elements of the specified iterables.
static HashDoubleSet newUpdatableSet(Iterable<Double> elems1, Iterable<Double> elems2, Iterable<Double> elems3)
          Constructs a new updatable set which merge the elements of the specified iterables.
static 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.
static 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.
static 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.
static 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.
static 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.
static HashDoubleSet newUpdatableSet(Iterator<Double> elements)
          Constructs a new updatable set containing the elements traversed by the specified iterator.
static HashDoubleSet newUpdatableSet(Iterator<Double> elements, int expectedSize)
          Constructs a new updatable set containing the elements traversed by the specified iterator.
static HashDoubleSet newUpdatableSetOf(double e1)
          Constructs a new updatable singleton set of the given element.
static HashDoubleSet newUpdatableSetOf(double e1, double e2)
          Constructs a new updatable set of the two specified elements.
static HashDoubleSet newUpdatableSetOf(double e1, double e2, double e3)
          Constructs a new updatable set of the three specified elements.
static HashDoubleSet newUpdatableSetOf(double e1, double e2, double e3, double e4)
          Constructs a new updatable set of the four specified elements.
static 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 class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultFactory

@Nonnull
public static HashDoubleSetFactory getDefaultFactory()
Returns the default implementation of HashDoubleSetFactory, to which all static methods in this class delegate.

Returns:
the default implementation of HashDoubleSetFactory
Throws:
RuntimeException - if no implementations of HashDoubleSetFactory are provided

newMutableSet

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

This method simply delegates to getDefaultFactory().newMutableSet().

Returns:
a new empty mutable set

newMutableSet

@Nonnull
public static HashDoubleSet newMutableSet(int expectedSize)
Constructs a new empty mutable set of the given expected size.

This method simply delegates to getDefaultFactory().newMutableSet(expectedSize).

Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty mutable set of the given expected size

newMutableSet

@Nonnull
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newMutableSet(elements, expectedSize).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Iterable<Double> elems1,
                                                  @Nonnull
                                                  Iterable<Double> elems2,
                                                  int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2, elems3, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2, elems3, elems4, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2, elems3, elems4, elems5, expectedSize).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Iterator<Double> elements,
                                                  int expectedSize)
Constructs a new mutable set containing the elements traversed by the specified iterator.

This method simply delegates to getDefaultFactory().newMutableSet(elements, expectedSize).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Consumer<DoubleConsumer> elementsSupplier,
                                                  int expectedSize)
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

This method simply delegates to getDefaultFactory().newMutableSet(elementsSupplier, expectedSize).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  double[] elements,
                                                  int expectedSize)
Constructs a new mutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newMutableSet(elements, expectedSize).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Double[] elements,
                                                  int expectedSize)
Constructs a new mutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newMutableSet(elements, expectedSize).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Iterable<Double> elements)
Constructs a new mutable set containing the elements in the specified iterable.

This method simply delegates to getDefaultFactory().newMutableSet(elements).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Iterable<Double> elems1,
                                                  @Nonnull
                                                  Iterable<Double> elems2)
Constructs a new mutable set which merge the elements of the specified iterables.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2, elems3).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2, elems3, elems4).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newMutableSet(elems1, elems2, elems3, elems4, elems5).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Iterator<Double> elements)
Constructs a new mutable set containing the elements traversed by the specified iterator.

This method simply delegates to getDefaultFactory().newMutableSet(elements).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Consumer<DoubleConsumer> elementsSupplier)
Constructs a new mutable set of elements consumed by the callback within the given closure.

Example: TODO

This method simply delegates to getDefaultFactory().newMutableSet(elementsSupplier).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  double[] elements)
Constructs a new mutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newMutableSet(elements).

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
public static HashDoubleSet newMutableSet(@Nonnull
                                                  Double[] elements)
Constructs a new mutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newMutableSet(elements).

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
public static HashDoubleSet newMutableSetOf(double e1)
Constructs a new mutable singleton set of the given element.

This method simply delegates to getDefaultFactory().newMutableSetOf(e1).

Parameters:
e1 - the sole element
Returns:
a new mutable singleton set of the given element

newMutableSetOf

@Nonnull
public static HashDoubleSet newMutableSetOf(double e1,
                                                    double e2)
Constructs a new mutable set of the two specified elements.

This method simply delegates to getDefaultFactory().newMutableSetOf(e1, e2).

Parameters:
e1 - the first element
e2 - the second element
Returns:
a new mutable set of the two specified elements

newMutableSetOf

@Nonnull
public static HashDoubleSet newMutableSetOf(double e1,
                                                    double e2,
                                                    double e3)
Constructs a new mutable set of the three specified elements.

This method simply delegates to getDefaultFactory().newMutableSetOf(e1, e2, e3).

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
public static HashDoubleSet newMutableSetOf(double e1,
                                                    double e2,
                                                    double e3,
                                                    double e4)
Constructs a new mutable set of the four specified elements.

This method simply delegates to getDefaultFactory().newMutableSetOf(e1, e2, e3, e4).

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
public static HashDoubleSet newMutableSetOf(double e1,
                                                    double e2,
                                                    double e3,
                                                    double e4,
                                                    double e5,
                                                    double... restElements)
Constructs a new mutable set of the specified elements.

This method simply delegates to getDefaultFactory().newMutableSetOf(e1, e2, e3, e4, e5, restElements).

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
public static HashDoubleSet newUpdatableSet()
Constructs a new empty updatable set of the default expected size.

This method simply delegates to getDefaultFactory().newUpdatableSet().

Returns:
a new empty updatable set

newUpdatableSet

@Nonnull
public static HashDoubleSet newUpdatableSet(int expectedSize)
Constructs a new empty updatable set of the given expected size.

This method simply delegates to getDefaultFactory().newUpdatableSet(expectedSize).

Parameters:
expectedSize - the expected size of the returned set
Returns:
a new empty updatable set of the given expected size

newUpdatableSet

@Nonnull
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements, expectedSize).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Iterable<Double> elems1,
                                                    @Nonnull
                                                    Iterable<Double> elems2,
                                                    int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2, elems3, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2, elems3, elems4, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2, elems3, elems4, elems5, expectedSize).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Iterator<Double> elements,
                                                    int expectedSize)
Constructs a new updatable set containing the elements traversed by the specified iterator.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements, expectedSize).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Consumer<DoubleConsumer> elementsSupplier,
                                                    int expectedSize)
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

This method simply delegates to getDefaultFactory().newUpdatableSet(elementsSupplier, expectedSize).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    double[] elements,
                                                    int expectedSize)
Constructs a new updatable set of elements from the given array.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements, expectedSize).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Double[] elements,
                                                    int expectedSize)
Constructs a new updatable set of elements from the given array.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements, expectedSize).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Iterable<Double> elements)
Constructs a new updatable set containing the elements in the specified iterable.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Iterable<Double> elems1,
                                                    @Nonnull
                                                    Iterable<Double> elems2)
Constructs a new updatable set which merge the elements of the specified iterables.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2, elems3).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2, elems3, elems4).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newUpdatableSet(elems1, elems2, elems3, elems4, elems5).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Iterator<Double> elements)
Constructs a new updatable set containing the elements traversed by the specified iterator.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Consumer<DoubleConsumer> elementsSupplier)
Constructs a new updatable set of elements consumed by the callback within the given closure.

Example: TODO

This method simply delegates to getDefaultFactory().newUpdatableSet(elementsSupplier).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    double[] elements)
Constructs a new updatable set of elements from the given array.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements).

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
public static HashDoubleSet newUpdatableSet(@Nonnull
                                                    Double[] elements)
Constructs a new updatable set of elements from the given array.

This method simply delegates to getDefaultFactory().newUpdatableSet(elements).

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
public static HashDoubleSet newUpdatableSetOf(double e1)
Constructs a new updatable singleton set of the given element.

This method simply delegates to getDefaultFactory().newUpdatableSetOf(e1).

Parameters:
e1 - the sole element
Returns:
a new updatable singleton set of the given element

newUpdatableSetOf

@Nonnull
public static HashDoubleSet newUpdatableSetOf(double e1,
                                                      double e2)
Constructs a new updatable set of the two specified elements.

This method simply delegates to getDefaultFactory().newUpdatableSetOf(e1, e2).

Parameters:
e1 - the first element
e2 - the second element
Returns:
a new updatable set of the two specified elements

newUpdatableSetOf

@Nonnull
public static HashDoubleSet newUpdatableSetOf(double e1,
                                                      double e2,
                                                      double e3)
Constructs a new updatable set of the three specified elements.

This method simply delegates to getDefaultFactory().newUpdatableSetOf(e1, e2, e3).

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
public static HashDoubleSet newUpdatableSetOf(double e1,
                                                      double e2,
                                                      double e3,
                                                      double e4)
Constructs a new updatable set of the four specified elements.

This method simply delegates to getDefaultFactory().newUpdatableSetOf(e1, e2, e3, e4).

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
public static HashDoubleSet newUpdatableSetOf(double e1,
                                                      double e2,
                                                      double e3,
                                                      double e4,
                                                      double e5,
                                                      double... restElements)
Constructs a new updatable set of the specified elements.

This method simply delegates to getDefaultFactory().newUpdatableSetOf(e1, e2, e3, e4, e5, restElements).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newImmutableSet(elements, expectedSize).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Iterable<Double> elems1,
                                                    @Nonnull
                                                    Iterable<Double> elems2,
                                                    int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2, elems3, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2, elems3, elems4, expectedSize).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2, elems3, elems4, elems5, expectedSize).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Iterator<Double> elements,
                                                    int expectedSize)
Constructs a new immutable set containing the elements traversed by the specified iterator.

This method simply delegates to getDefaultFactory().newImmutableSet(elements, expectedSize).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Consumer<DoubleConsumer> elementsSupplier,
                                                    int expectedSize)
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

This method simply delegates to getDefaultFactory().newImmutableSet(elementsSupplier, expectedSize).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    double[] elements,
                                                    int expectedSize)
Constructs a new immutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newImmutableSet(elements, expectedSize).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Double[] elements,
                                                    int expectedSize)
Constructs a new immutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newImmutableSet(elements, expectedSize).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Iterable<Double> elements)
Constructs a new immutable set containing the elements in the specified iterable.

This method simply delegates to getDefaultFactory().newImmutableSet(elements).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Iterable<Double> elems1,
                                                    @Nonnull
                                                    Iterable<Double> elems2)
Constructs a new immutable set which merge the elements of the specified iterables.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2, elems3).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2, elems3, elems4).

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
public static HashDoubleSet 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.

This method simply delegates to getDefaultFactory().newImmutableSet(elems1, elems2, elems3, elems4, elems5).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Iterator<Double> elements)
Constructs a new immutable set containing the elements traversed by the specified iterator.

This method simply delegates to getDefaultFactory().newImmutableSet(elements).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Consumer<DoubleConsumer> elementsSupplier)
Constructs a new immutable set of elements consumed by the callback within the given closure.

Example: TODO

This method simply delegates to getDefaultFactory().newImmutableSet(elementsSupplier).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    double[] elements)
Constructs a new immutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newImmutableSet(elements).

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
public static HashDoubleSet newImmutableSet(@Nonnull
                                                    Double[] elements)
Constructs a new immutable set of elements from the given array.

This method simply delegates to getDefaultFactory().newImmutableSet(elements).

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
public static HashDoubleSet newImmutableSetOf(double e1)
Constructs a new immutable singleton set of the given element.

This method simply delegates to getDefaultFactory().newImmutableSetOf(e1).

Parameters:
e1 - the sole element
Returns:
a new immutable singleton set of the given element

newImmutableSetOf

@Nonnull
public static HashDoubleSet newImmutableSetOf(double e1,
                                                      double e2)
Constructs a new immutable set of the two specified elements.

This method simply delegates to getDefaultFactory().newImmutableSetOf(e1, e2).

Parameters:
e1 - the first element
e2 - the second element
Returns:
a new immutable set of the two specified elements

newImmutableSetOf

@Nonnull
public static HashDoubleSet newImmutableSetOf(double e1,
                                                      double e2,
                                                      double e3)
Constructs a new immutable set of the three specified elements.

This method simply delegates to getDefaultFactory().newImmutableSetOf(e1, e2, e3).

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
public static HashDoubleSet newImmutableSetOf(double e1,
                                                      double e2,
                                                      double e3,
                                                      double e4)
Constructs a new immutable set of the four specified elements.

This method simply delegates to getDefaultFactory().newImmutableSetOf(e1, e2, e3, e4).

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
public static HashDoubleSet newImmutableSetOf(double e1,
                                                      double e2,
                                                      double e3,
                                                      double e4,
                                                      double e5,
                                                      double... restElements)
Constructs a new immutable set of the specified elements.

This method simply delegates to getDefaultFactory().newImmutableSetOf(e1, e2, e3, e4, e5, restElements).

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