public abstract class AggregateObject<T> extends ArrayList<T> implements Aggregate<T>
modCount
Modifier | Constructor and Description |
---|---|
protected |
AggregateObject(Class<T> et) |
Modifier and Type | Method and Description |
---|---|
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
|
void |
setObject(int index,
Object element)
Set the value at a specified index to the given object.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
trimToSize
public void setObject(int index, Object element)
setObject
in interface Aggregate<T>
index
- The index in set.element
- The value to set.ClassCastException
- if element
is not assignable
to the type of the aggregate.public void addObject(int index, Object element)