|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Vector>
com.numericalmethod.suanshu.datastructure.list.VectorList
public class VectorList
This data structure represents a list of Vectors.
It is a wrapper for ArrayList<Vector> and
has a set of utility functions for convenient.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
VectorList()
Construct an empty list of Vectors. |
|
VectorList(Vector[] list)
Copy constructor to copy from an array of Vectors. |
|
VectorList(VectorList list)
Copy constructor to copy from another list of Vectors. |
|
| Method Summary | |
|---|---|
VectorList |
deepCopy()
Get a deep copy of this VectorList instance. |
Vector[] |
toArray()
Get an array of all the elements in this list. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public VectorList()
Vectors.
public VectorList(VectorList list)
Vectors.
The new instance is a deep copy.
list - a list of Vectorspublic VectorList(Vector[] list)
Vectors.
The two data structures reference the same instances of vectors, hence a shallow copy.
list - a list of Vectors| Method Detail |
|---|
public Vector[] toArray()
this reference the same set of elements.
This method acts as bridge between array-based and collection-based APIs.
toArray in interface java.util.Collection<Vector>toArray in interface java.util.List<Vector>toArray in class java.util.ArrayList<Vector>public VectorList deepCopy()
deepCopy in interface DeepCopyable
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||