public class SortedListDoubleSet extends java.lang.Object implements DoubleSortedSet
DoubleSortedSet backed by two SparseBitSets for positive and negative values.| Constructor and Description |
|---|
SortedListDoubleSet(double... xs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDouble(double x) |
void |
clear() |
boolean |
containsDoubleExactly(double x) |
boolean |
equals(java.lang.Object o) |
double |
firstDouble() |
int |
hashCode() |
boolean |
isEmpty() |
DoubleIterator |
iterator() |
double |
lastDouble() |
boolean |
removeDoubleExactly(double x) |
int |
size() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparator, first, headSet, headSet, last, spliterator, subSet, subSet, tailSet, tailSetadd, addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayaddAllDoubles, addAllDoubles, removeIf, toDoubleArraycontainsAllDoubles, containsAllDoubles, containsAllDoublesExactly, containsAllDoublesExactly, containsAnyDoubles, containsAnyDoubles, containsAnyDoublesExactly, containsAnyDoublesExactly, containsDouble, doubleStream, forEach, forEachDouble, from, from, of, once, once, parallelDoubleStream, removeAllDoubles, removeAllDoubles, removeAllDoublesExactly, removeAllDoublesExactly, removeDouble, removeDoublesIf, retainAllDoubles, retainAllDoubles, retainAllDoublesExactly, retainAllDoublesExactly, sequencepublic int size()
size in interface java.util.Collection<java.lang.Double>size in interface java.util.Set<java.lang.Double>public DoubleIterator iterator()
iterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Collection<java.lang.Double>iterator in interface java.util.Set<java.lang.Double>iterator in interface DoubleIterablepublic boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Double>isEmpty in interface java.util.Set<java.lang.Double>isEmpty in interface DoubleCollectionisEmpty in interface DoubleIterableisEmpty in interface DoubleSetpublic void clear()
clear in interface java.util.Collection<java.lang.Double>clear in interface java.util.Set<java.lang.Double>clear in interface DoubleCollectionclear in interface DoubleIterableclear in interface DoubleSetpublic boolean addDouble(double x)
addDouble in interface DoubleCollectionpublic boolean removeDoubleExactly(double x)
removeDoubleExactly in interface DoubleIterablepublic boolean containsDoubleExactly(double x)
containsDoubleExactly in interface DoubleIterablepublic double firstDouble()
firstDouble in interface DoubleSortedSetpublic double lastDouble()
lastDouble in interface DoubleSortedSetpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Double>equals in interface java.util.Set<java.lang.Double>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Double>hashCode in interface java.util.Set<java.lang.Double>hashCode in class java.lang.Object