sizemodCount| Constructor and Description |
|---|
AggregateReal()
Create an aggregate of EXPRESS REAL numbers
|
AggregateReal(int init_size)
Create an aggregate of EXPRESS REAL with the given capacity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double value)
Insert an element into the Aggregate at the end of the aggregate
|
boolean |
add(Double value)
Insert an element into the Aggregate at the end of the aggregate
|
void |
add(int index,
double value)
Insert an element into the Aggregate at a specified index
|
void |
add(int index,
Double value)
Insert an element into the Aggregate at a specified index
|
void |
addObject(int index,
Object element)
Insert a value at a specified index
|
void |
addObject(Object element)
Insert a value to the end of the aggregate
|
protected Object |
createBuffer(int sz)
Create a Java array of the type of the aggregate with the spefified
size.
|
Double |
get(int idx)
Get the element at a particular element
|
protected Object |
getBuffer()
Get the buffer object.
|
protected int |
getCapacity()
Get the length of the buffer.
|
double |
getValue(int idx)
Get the value at a specified index
|
double |
set(int index,
double value)
Set a value at a specified index
|
Double |
set(int index,
Double value)
Set a value at a specified index
|
void |
setObject(int index,
Object element)
Set the value at a specified index
|
void |
trimToSize()
Update the size of the buffer to the minimum size required by the data.
|
checkIndex, clone, size, updateCapacityaddAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic AggregateReal(int init_size)
init_size - initial size of the buffer to usepublic AggregateReal()
protected Object getBuffer()
AggregatePrimitivegetBuffer in class AggregatePrimitive<Double>protected Object createBuffer(int sz)
AggregatePrimitivecreateBuffer in class AggregatePrimitive<Double>sz - The requested size of the buffer.protected int getCapacity()
AggregatePrimitivegetCapacity in class AggregatePrimitive<Double>public double getValue(int idx)
idx - the element to get.public Double get(int idx)
public double set(int index,
double value)
index - of the element to setvalue - the value to to be stored at the specified location.public void setObject(int index,
Object element)
index - The index in set.element - The value to set.public void add(int index,
double value)
index - of the element to setvalue - the value to to be stored at the specified location.public void add(int index,
Double value)
public void addObject(int index,
Object element)
index - The index in set.element - The value to set.public boolean add(double value)
value - the value to to be stored at the specified location.public boolean add(Double value)
add in interface Collection<Double>add in interface List<Double>add in class AbstractList<Double>value - the value to to be stored at the specified location.public void addObject(Object element)
element - The value to set.public void trimToSize()
trimToSize in interface Aggregate<Double>trimToSize in class AggregatePrimitive<Double>