public class AutoExpandVector<T> extends ArrayList<T> implements MOAObject
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) |
T |
set(int pos,
T obj) |
clone, contains, ensureCapacity, forEach, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
containsAll, equals, hashCode
parallelStream, stream
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)
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 © 2013–2015 The Apache Software Foundation. All rights reserved.