public abstract class AggregateInteger extends AggregatePrimitive<Integer>
size
modCount
Constructor and Description |
---|
AggregateInteger()
Create an aggregate of EXPRESS REAL numbers
|
AggregateInteger(int init_size)
Create an aggregate of EXPRESS REAL with the given capacity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(int value)
Insert an element into the Aggregate at the end of the aggregate
|
boolean |
add(Integer value)
Insert an element into the Aggregate at the end of the aggregate
|
void |
add(int index,
int value)
Insert an element into the Aggregate at a specified index
|
void |
add(int index,
Integer 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.
|
Integer |
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.
|
int |
getValue(int idx)
Get the value at a specified index
|
int |
set(int index,
int value)
Set a value at a specified index
|
Integer |
set(int index,
Integer value)
Set a value at a specified index
|
void |
setObject(int index,
Object element)
Set the value at a specified index
|
checkIndex, clone, size, trimToSize, updateCapacity
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public AggregateInteger(int init_size)
init_size
- initial size of the buffer to usepublic AggregateInteger()
protected Object getBuffer()
AggregatePrimitive
getBuffer
in class AggregatePrimitive<Integer>
protected Object createBuffer(int sz)
AggregatePrimitive
createBuffer
in class AggregatePrimitive<Integer>
sz
- The requested size of the buffer.protected int getCapacity()
AggregatePrimitive
getCapacity
in class AggregatePrimitive<Integer>
public int getValue(int idx)
idx
- the element to get.public Integer get(int idx)
public int set(int index, int 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, int value)
index
- of the element to setvalue
- the value to to be stored at the specified location.public void add(int index, Integer value)
public void addObject(int index, Object element)
index
- The index in set.element
- The value to set.public boolean add(int value)
value
- the value to to be stored at the specified location.public boolean add(Integer value)
add
in interface Collection<Integer>
add
in interface List<Integer>
add
in class AbstractList<Integer>
value
- the value to to be stored at the specified location.public void addObject(Object element)
element
- The value to set.