public class AutoExpandVector<T> extends ArrayList<T> implements MOAObject
modCount
Constructor and Description |
---|
AutoExpandVector() |
AutoExpandVector(int size) |
Modifier and Type | Method and Description |
---|---|
void |
add(int pos,
T obj) |
boolean |
add(T arg0) |
boolean |
addAll(Collection<? extends T> arg0) |
boolean |
addAll(int arg0,
Collection<? extends T> arg1) |
void |
clear() |
MOAObject |
copy()
This method produces a copy of this object.
|
T |
get(int pos) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
int |
measureByteSize()
Gets the memory size of this object.
|
T |
remove(int arg0) |
boolean |
remove(Object arg0) |
protected void |
removeRange(int arg0,
int arg1) |
T |
set(int pos,
T obj) |
clone, contains, ensureCapacity, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, retainAll, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public AutoExpandVector()
public AutoExpandVector(int size)
public void add(int pos, T obj)
public T get(int pos)
public boolean add(T arg0)
public boolean addAll(Collection<? extends T> arg0)
public boolean addAll(int arg0, Collection<? extends T> arg1)
public void clear()
public T remove(int arg0)
public boolean remove(Object arg0)
protected void removeRange(int arg0, int arg1)
removeRange
in class ArrayList<T>
public MOAObject copy()
MOAObject
public int measureByteSize()
MOAObject
measureByteSize
in interface MOAObject
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.