cc.mallet.types
Class ArraySequence<E>
java.lang.Object
cc.mallet.types.ArraySequence<E>
- All Implemented Interfaces:
- Sequence<E>
public class ArraySequence<E>
- extends java.lang.Object
- implements Sequence<E>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArraySequence
public ArraySequence(java.util.ArrayList<E> a)
ArraySequence
public ArraySequence(E[] a,
boolean copy)
ArraySequence
public ArraySequence(E[] a)
ArraySequence
protected ArraySequence(Sequence<E> s,
boolean copy)
get
public E get(int index)
- Specified by:
get
in interface Sequence<E>
size
public int size()
- Specified by:
size
in interface Sequence<E>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object