edu.stanford.nlp.classify
Class SortedArray

java.lang.Object
  |
  +--edu.stanford.nlp.classify.SortedArray

public class SortedArray
extends Object

Maintains a sorted array of ints.


Constructor Summary
SortedArray(int my_size)
          Constructor: takes the size of the array.
 
Method Summary
 void add(int element)
          Add an element to the array.
 int[] getArray()
          Return the sorted array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedArray

public SortedArray(int my_size)
Constructor: takes the size of the array.

Method Detail

add

public void add(int element)
Add an element to the array.


getArray

public int[] getArray()
Return the sorted array.



Stanford NLP Group