public abstract class AggregatePrimitive<T> extends AbstractList<T> implements Aggregate<T>
Modifier and Type | Field and Description |
---|---|
protected int |
size |
modCount
Constructor and Description |
---|
AggregatePrimitive() |
AggregatePrimitive(int init_size)
Create an aggregate of EXPRESS REAL with the given capacity.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkIndex(int idx) |
Object |
clone()
Generate a shallow copy of this object
|
protected abstract Object |
createBuffer(int sz)
Create a Java array of the type of the aggregate with the spefified
size.
|
protected abstract Object |
getBuffer()
Get the buffer object.
|
protected abstract int |
getCapacity()
Get the length of the buffer.
|
int |
size()
Get the size of the aggregate
|
void |
trimToSize()
Update the size of the buffer to the minimum size required by the data.
|
protected void |
updateCapacity(int req_sz) |
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public AggregatePrimitive(int init_size)
init_size
- initial size of the buffer to usepublic AggregatePrimitive()
protected abstract Object getBuffer()
protected abstract Object createBuffer(int sz)
sz
- The requested size of the buffer.protected abstract int getCapacity()
public void trimToSize()
trimToSize
in interface Aggregate<T>
public Object clone() throws CloneNotSupportedException
Instance
clone
in interface Instance
clone
in class Object
CloneNotSupportedException
- If this object cannot be cloned.
This is not thrown be any ST-Developer class, but was provided in the
java.lang.Object prototype for clone().public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
protected void checkIndex(int idx)
protected void updateCapacity(int req_sz)