cc.mallet.types
Class ArraySequence<E>

java.lang.Object
  extended by cc.mallet.types.ArraySequence<E>
All Implemented Interfaces:
Sequence<E>

public class ArraySequence<E>
extends java.lang.Object
implements Sequence<E>


Constructor Summary
  ArraySequence(java.util.ArrayList<E> a)
           
  ArraySequence(E[] a)
           
  ArraySequence(E[] a, boolean copy)
           
protected ArraySequence(Sequence<E> s, boolean copy)
           
 
Method Summary
 E get(int index)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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