| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private transient boolean | |
| private static final int | |
| private static final double | |
| private static final int | |
| private static final int | |
| private int | |
| private int | |
| private static final double | |
| private static final long | |
| private double[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(double element)
Implements org.
|
| public boolean | addAll(double... source)
Implements org.
|
| public boolean | |
| protected void | |
| public boolean | allSatisfy(DoublePredicate predicate)
Implements org. Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public boolean | anySatisfy(DoublePredicate predicate)
Implements org. Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Implements org. Prints a string representation of this collection onto the given |
| public MutableDoubleSet | |
| public MutableDoubleSet | |
| public MutableSet | |
| public RichIterable | chunk(int size)
Overrides default org. Partitions elements in fixed size chunks. |
| public void | |
| public <V> MutableSet | collect(DoubleToObjectFunction<? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public <V, R extends Collection | collect(DoubleToObjectFunction<? extends V> function, R target)
Overrides default org. Same as |
| public void | compact()
Deprecated
since 12.0 - Use
trimToSize() instead
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. |
| public boolean | contains(double value)
Implements org. Returns true if the value is contained in the DoubleIterable, and false if it is not. |
| private void | |
| public int | count(DoublePredicate predicate)
Implements org. Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate. |
| public double | detectIfNone(DoublePredicate predicate, double ifNone)
Implements org.
|
| public MutableDoubleIterator | doubleIterator()
Implements org. Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. |
| public void | each(DoubleProcedure procedure)
Implements org. A synonym for forEach. |
| public DoubleSet | freeze()
Implements org. Returns a frozen copy of this set. |
| public int | hashCode()
Implements abstract org. Implements org. Follows the same general contract as |
| public <T> T | injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function)
Implements org.
|
| private static boolean | |
| private static boolean | |
| private int | |
| public double | |
| private int | |
| public double | |
| public DoubleHashSet | newEmpty()
Overrides default org. Creates a new empty DoubleHashSet. |
| public static DoubleHashSet | |
| public static DoubleHashSet | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| public void | readExternal(ObjectInput in)
Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| private void | |
| private void | |
| public DoubleHashSet | reject(DoublePredicate predicate)
Implements org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate. |
| public <R extends MutableDoubleCollection> R | reject(DoublePredicate predicate, R target)
Overrides default org. Same as |
| public boolean | remove(double value)
Implements org.
|
| public boolean | |
| public boolean | removeAll(double... source)
Implements org.
|
| private boolean | |
| public boolean | |
| public boolean | retainAll(double... source)
Implements org.
|
| public DoubleHashSet | select(DoublePredicate predicate)
Implements org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate. |
| public <R extends MutableDoubleCollection> R | select(DoublePredicate predicate, R target)
Overrides default org. Same as |
| public int | size()
Implements org. Returns the number of items in this iterable. |
| private int | |
| pack-priv int | |
| pack-priv int | |
| public double | |
| public double[] | toArray()
Implements org. Converts the DoubleIterable to a primitive double array. |
| public double[] | toArray(double[] array)
Overrides default org. Converts the DoubleIterable to a primitive double array. |
| public ImmutableDoubleSet | toImmutable()
Implements org. Returns an immutable copy of this set. |
| public boolean | |
| public DoubleHashSet | |
| public DoubleHashSet | withAll(DoubleIterable elements)
Implements org.
|
| public DoubleHashSet | without(double element)
Implements org.
|
| public DoubleHashSet | |
| public void | writeExternal(ObjectOutput out)
Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |