public class SortedListDoubleSet extends DoubleSet.Base implements DoubleSortedSet
DoubleSortedSet
backed by two SparseBitSet
s for positive and negative values.DoubleSortedSet.SubSet
DoubleSet.Base
Constructor and Description |
---|
SortedListDoubleSet() |
SortedListDoubleSet(double... xs) |
Modifier and Type | Method and Description |
---|---|
boolean |
addDoubleExactly(double x) |
void |
clear() |
boolean |
containsDoubleExactly(double x) |
double |
firstDouble() |
boolean |
isEmpty() |
DoubleIterator |
iterator() |
double |
lastDouble() |
boolean |
removeDoubleExactly(double x) |
int |
size() |
equals, hashCode
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparator, create, create, first, headSet, headSet, headSetExactly, last, spliterator, subSet, subSet, subSetExactly, tailSet, tailSet, tailSetExactly
add, addAll, addDouble, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
addAllDoubles, addAllDoubles, addDouble, removeIf, toDoubleArray
containsAllDoubles, 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, sequence
public SortedListDoubleSet()
public SortedListDoubleSet(double... xs)
public 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 DoubleIterable
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Double>
isEmpty
in interface java.util.Set<java.lang.Double>
isEmpty
in interface DoubleCollection
isEmpty
in interface DoubleIterable
isEmpty
in interface DoubleSet
public void clear()
clear
in interface java.util.Collection<java.lang.Double>
clear
in interface java.util.Set<java.lang.Double>
clear
in interface DoubleCollection
clear
in interface DoubleIterable
clear
in interface DoubleSet
public boolean addDoubleExactly(double x)
addDoubleExactly
in interface DoubleCollection
DoubleCollection.addDouble(double, double)
public boolean removeDoubleExactly(double x)
removeDoubleExactly
in interface DoubleIterable
public boolean containsDoubleExactly(double x)
containsDoubleExactly
in interface DoubleIterable
public double firstDouble()
firstDouble
in interface DoubleSortedSet
public double lastDouble()
lastDouble
in interface DoubleSortedSet