public static class DoubleBigLists.Singleton extends AbstractDoubleBigList implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractDoubleBigList.DoubleRandomAccessSubList, AbstractDoubleBigList.DoubleSubList
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(java.util.Collection<? extends java.lang.Double> c) |
boolean |
addAll(DoubleBigList c)
Appends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).
|
boolean |
addAll(DoubleCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(long i,
java.util.Collection<? extends java.lang.Double> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
boolean |
addAll(long i,
DoubleBigList c)
Inserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).
|
boolean |
addAll(long i,
DoubleCollection c)
Inserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).
|
void |
clear() |
java.lang.Object |
clone() |
boolean |
contains(double k)
Returns true if this list contains the specified element.
|
double |
getDouble(long i)
Returns the element at the specified position.
|
long |
indexOf(double k)
Returns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.
|
DoubleBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
DoubleBigListIterator |
listIterator(long i)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(double k)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeAll(DoubleCollection c)
Remove from this collection all elements in the given type-specific collection.
|
double |
removeDouble(long i)
Removes the element at the specified position.
|
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(DoubleCollection c)
Retains in this collection only elements from the given type-specific collection.
|
long |
size64()
Returns the size of this data structure as a long.
|
DoubleSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this big-list.
|
DoubleBigList |
subList(long from,
long to)
Returns a type-specific view of the portion of this type-specific big list from the index
from , inclusive, to the index to , exclusive. |
double[] |
toDoubleArray()
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, equals, forEach, get, getElements, hashCode, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekDouble, pop, popDouble, push, push, remove, removeElements, set, set, setElements, size, size, top, topDouble, toString
add, contains, containsAll, containsAll, forEach, remove, removeIf, toArray, toDoubleArray
addAll, addAll, setElements, setElements
add, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArray, toDoubleArray
forEach, forEach
public double getDouble(long i)
DoubleBigList
getDouble
in interface DoubleBigList
BigList.get(long)
public boolean rem(double k)
AbstractDoubleBigList
rem
in interface DoubleCollection
rem
in class AbstractDoubleBigList
Collection.remove(Object)
public double removeDouble(long i)
AbstractDoubleBigList
removeDouble
in interface DoubleBigList
removeDouble
in class AbstractDoubleBigList
BigList.remove(long)
public boolean contains(double k)
AbstractDoubleBigList
contains
in interface DoubleCollection
contains
in class AbstractDoubleBigList
Collection.contains(Object)
public long indexOf(double k)
DoubleBigList
indexOf
in interface DoubleBigList
indexOf
in class AbstractDoubleBigList
BigList.indexOf(Object)
public double[] toDoubleArray()
DoubleCollection
toDoubleArray
in interface DoubleCollection
toDoubleArray
in class AbstractDoubleCollection
Collection.toArray()
public DoubleBigListIterator listIterator()
AbstractDoubleBigList
listIterator
in interface BigList<java.lang.Double>
listIterator
in interface DoubleBigList
listIterator
in class AbstractDoubleBigList
BigList.listIterator()
public DoubleBigListIterator listIterator(long i)
AbstractDoubleBigList
listIterator
in interface BigList<java.lang.Double>
listIterator
in interface DoubleBigList
listIterator
in class AbstractDoubleBigList
i
- index of first element to be returned from the big-list iterator.BigList.listIterator(long)
public DoubleSpliterator spliterator()
DoubleBigList
BigList spliterators must report at least Spliterator.SIZED
and Spliterator.ORDERED
.
See List.spliterator()
for more documentation on the requirements
of the returned spliterator (despite BigList
not being a List
, most of the
same requirements apply.
spliterator
in interface DoubleBigList
spliterator
in interface DoubleCollection
spliterator
in interface DoubleIterable
spliterator
in interface java.lang.Iterable<java.lang.Double>
spliterator
in interface java.util.Collection<java.lang.Double>
public DoubleBigList subList(long from, long to)
DoubleBigList
from
, inclusive, to the index to
, exclusive.subList
in interface BigList<java.lang.Double>
subList
in interface DoubleBigList
subList
in class AbstractDoubleBigList
from
- the starting element (inclusive).to
- the ending element (exclusive).BigList.subList(long,long)
public boolean addAll(long i, java.util.Collection<? extends java.lang.Double> c)
AbstractDoubleBigList
addAll
in interface BigList<java.lang.Double>
addAll
in class AbstractDoubleBigList
i
- index at which to insert the first element from the specified collection.c
- collection containing elements to be added to this big list.true
if this big list changed as a result of the callList.addAll(int, Collection)
public boolean addAll(java.util.Collection<? extends java.lang.Double> c)
AbstractDoubleBigList
addAll
in interface java.util.Collection<java.lang.Double>
addAll
in class AbstractDoubleBigList
public boolean removeAll(java.util.Collection<?> c)
AbstractDoubleCollection
removeAll
in interface java.util.Collection<java.lang.Double>
removeAll
in class AbstractDoubleCollection
public boolean retainAll(java.util.Collection<?> c)
AbstractDoubleCollection
retainAll
in interface java.util.Collection<java.lang.Double>
retainAll
in class AbstractDoubleCollection
public boolean addAll(DoubleBigList c)
DoubleBigList
addAll
in interface DoubleBigList
Collection.addAll(Collection)
public boolean addAll(long i, DoubleBigList c)
DoubleBigList
addAll
in interface DoubleBigList
BigList.addAll(long,Collection)
public boolean addAll(long i, DoubleCollection c)
AbstractDoubleBigList
addAll
in interface DoubleBigList
addAll
in class AbstractDoubleBigList
List.addAll(int,java.util.Collection)
public boolean addAll(DoubleCollection c)
AbstractDoubleBigList
addAll
in interface DoubleCollection
addAll
in class AbstractDoubleBigList
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.addAll(Collection)
public boolean removeAll(DoubleCollection c)
DoubleCollection
removeAll
in interface DoubleCollection
removeAll
in class AbstractDoubleCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.removeAll(Collection)
public boolean retainAll(DoubleCollection c)
DoubleCollection
retainAll
in interface DoubleCollection
retainAll
in class AbstractDoubleCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.retainAll(Collection)
public void clear()
AbstractDoubleBigList
clear
in interface java.util.Collection<java.lang.Double>
clear
in class AbstractDoubleBigList
public long size64()
Size64
public java.lang.Object clone()
clone
in class java.lang.Object