com.wallstreetwise.core.util
Class OrderedArrayList

java.lang.Object
  extended by com.wallstreetwise.core.util.OrderedArrayList

public class OrderedArrayList
extends java.lang.Object

A class to maintain an array in order.


Constructor Summary
OrderedArrayList()
          Constructor for OrderedArrayList.
 
Method Summary
 void addElement(java.lang.Comparable obj)
          Add an element that implements Comparable.
 java.lang.Object elementAt(int i)
          Return the element at the given position.
 java.util.Iterator iterator()
          Return an Iterator.
 void removeAllElements()
          Remove all the elements in the OrderedArrayList.
 void removeElement(java.lang.Object o)
          Remove an Object from the OrderedArrayList.
 int size()
          Returns number of elements in OrderedArrayList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedArrayList

public OrderedArrayList()
Constructor for OrderedArrayList.

Method Detail

addElement

public final void addElement(java.lang.Comparable obj)
Add an element that implements Comparable. In JSpell this class is used to sort the suggestions by their equivalency ranking.

Parameters:
obj - a Comparable object.

iterator

public final java.util.Iterator iterator()
Return an Iterator.

Returns:
an Iterator.

size

public final int size()
Returns number of elements in OrderedArrayList.

Returns:
an int.

removeAllElements

public final void removeAllElements()
Remove all the elements in the OrderedArrayList.


elementAt

public final java.lang.Object elementAt(int i)
Return the element at the given position.

Parameters:
i - an int.
Returns:
an Object.

removeElement

public final void removeElement(java.lang.Object o)
Remove an Object from the OrderedArrayList.

Parameters:
o - an Object.


JSpell SDK 2004 Spell Checker for the Java (tm) Platform
Copyright © 1996-2005 The Solution Cafe Inc, All Rights Reserved - http://www.thesolutioncafe.com