public abstract class AbstractDoubleList extends AbstractList implements DoubleBufferConsumer, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int |
size |
| Constructor and Description |
|---|
AbstractDoubleList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double element) |
void |
addAllOf(AbstractDoubleList other) |
void |
addAllOf(DoubleArrayList other) |
void |
addAllOfFromTo(AbstractDoubleList other,
int from,
int to) |
void |
beforeInsert(int index,
double element) |
void |
beforeInsertAllOfFromTo(int index,
AbstractDoubleList other,
int from,
int to) |
protected void |
beforeInsertDummies(int index,
int length) |
int |
binarySearch(double key) |
int |
binarySearchFromTo(double key,
int from,
int to) |
Object |
clone() |
boolean |
contains(double elem) |
void |
delete(double element) |
double[] |
elements() |
AbstractDoubleList |
elements(double[] elements) |
abstract void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherObj) |
void |
fillFromToWith(int from,
int to,
double val) |
boolean |
forEach(DoubleProcedure procedure) |
double |
get(int index) |
protected abstract double |
getQuick(int index) |
int |
indexOf(double element) |
int |
indexOfFromTo(double element,
int from,
int to) |
int |
lastIndexOf(double element) |
int |
lastIndexOfFromTo(double element,
int from,
int to) |
void |
mergeSortFromTo(int from,
int to) |
void |
mergeSortFromTo(int from,
int to,
DoubleComparator c) |
AbstractDoubleList |
partFromTo(int from,
int to) |
void |
quickSortFromTo(int from,
int to) |
void |
quickSortFromTo(int from,
int to,
DoubleComparator c) |
boolean |
removeAll(AbstractDoubleList other) |
void |
removeFromTo(int from,
int to) |
void |
replaceFromToWithFrom(int from,
int to,
AbstractDoubleList other,
int otherFrom) |
void |
replaceFromToWithFromTo(int from,
int to,
AbstractDoubleList other,
int otherFrom,
int otherTo) |
boolean |
retainAll(AbstractDoubleList other) |
void |
reverse() |
void |
set(int index,
double element) |
protected abstract void |
setQuick(int index,
double element) |
protected void |
setSizeRaw(int newSize) |
int |
size() |
AbstractDoubleList |
times(int times) |
double[] |
toArray(double[] values) |
List<Double> |
toList() |
String |
toString() |
checkRange, checkRangeFromTo, clear, isEmpty, mergeSort, quickSort, remove, setSize, sort, sortFromTo, trimToSizepublic void add(double element)
public void addAllOf(AbstractDoubleList other)
public void addAllOfFromTo(AbstractDoubleList other, int from, int to)
public void addAllOf(DoubleArrayList other)
addAllOf in interface DoubleBufferConsumerpublic void beforeInsert(int index,
double element)
public void beforeInsertAllOfFromTo(int index,
AbstractDoubleList other,
int from,
int to)
protected void beforeInsertDummies(int index,
int length)
beforeInsertDummies in class AbstractListpublic int binarySearch(double key)
public int binarySearchFromTo(double key,
int from,
int to)
public Object clone()
clone in class PersistentObjectpublic boolean contains(double elem)
public void delete(double element)
public double[] elements()
public AbstractDoubleList elements(double[] elements)
public abstract void ensureCapacity(int minCapacity)
public void fillFromToWith(int from,
int to,
double val)
public boolean forEach(DoubleProcedure procedure)
public double get(int index)
protected abstract double getQuick(int index)
public int indexOf(double element)
public int indexOfFromTo(double element,
int from,
int to)
public int lastIndexOf(double element)
public int lastIndexOfFromTo(double element,
int from,
int to)
public void mergeSortFromTo(int from,
int to)
mergeSortFromTo in class AbstractListpublic void mergeSortFromTo(int from,
int to,
DoubleComparator c)
public AbstractDoubleList partFromTo(int from, int to)
public void quickSortFromTo(int from,
int to)
quickSortFromTo in class AbstractListpublic void quickSortFromTo(int from,
int to,
DoubleComparator c)
public boolean removeAll(AbstractDoubleList other)
public void removeFromTo(int from,
int to)
removeFromTo in class AbstractListpublic void replaceFromToWithFrom(int from,
int to,
AbstractDoubleList other,
int otherFrom)
public void replaceFromToWithFromTo(int from,
int to,
AbstractDoubleList other,
int otherFrom,
int otherTo)
public boolean retainAll(AbstractDoubleList other)
public void reverse()
reverse in class AbstractListpublic void set(int index,
double element)
protected abstract void setQuick(int index,
double element)
protected void setSizeRaw(int newSize)
public int size()
size in class AbstractListpublic AbstractDoubleList times(int times)
public double[] toArray(double[] values)