SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.datastructure.list
Class MatrixList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Matrix>
              extended by com.numericalmethod.suanshu.datastructure.list.MatrixList
All Implemented Interfaces:
DeepCopyable, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Matrix>, java.util.Collection<Matrix>, java.util.List<Matrix>, java.util.RandomAccess

public class MatrixList
extends java.util.ArrayList<Matrix>
implements DeepCopyable

This data structure represents a list of Matrixs.

It is a wrapper for ArrayList<Matrix> and has a set of utility functions for convenient.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MatrixList()
          Construct an empty list of Matrix.
MatrixList(MatrixList list)
          Copy constructor to copy from another list of Matrixs.
 
Method Summary
 MatrixList deepCopy()
          Get a deep copy of this MatrixList instance.
 
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, 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

MatrixList

public MatrixList()
Construct an empty list of Matrix.


MatrixList

public MatrixList(MatrixList list)
Copy constructor to copy from another list of Matrixs. The new instance is a deep copy.

Parameters:
list - a list of Matrixs
Method Detail

deepCopy

public MatrixList deepCopy()
Get a deep copy of this MatrixList instance. The elements themselves are copied.

Specified by:
deepCopy in interface DeepCopyable
Returns:
a deep copy of this MatrixList instance

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.