public class SortedDoubleArray extends DoubleArray
data, index
Constructor and Description |
---|
SortedDoubleArray() |
SortedDoubleArray(double[] data) |
SortedDoubleArray(int size) |
Modifier and Type | Method and Description |
---|---|
void |
add(double d)
adds the eleemnt in a sorted way
|
void |
addAll(double[] a)
adds the set of values at the end of the list
|
void |
set(int i,
double a)
add a value at the index and replaces the element at index i
|
addAll, ensureCapacity, get, getData, getFast, size, trimToSize
public SortedDoubleArray()
public SortedDoubleArray(int size)
public SortedDoubleArray(double[] data)
public void add(double d)
add
in class DoubleArray
d
- public void addAll(double[] a)
DoubleArray
addAll
in class DoubleArray
public void set(int i, double a)
DoubleArray
set
in class DoubleArray
i
- a
- UnsupportedOperationException
- if the sorting will be brokenCopyright © 2012. All Rights Reserved.