sims.mdt
Class Alphabet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by sims.mdt.Alphabet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class Alphabet
extends java.util.Vector

See Also:
Serialized Form

Constructor Summary
Alphabet()
           
 
Method Summary
 void addLetter(int i, char c)
          Add a letter to this alphabet.
 java.lang.Character getLetter(int i)
          To get a letter from an index in the alphabet.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

Alphabet

public Alphabet()
Method Detail

addLetter

public void addLetter(int i,
                      char c)
Add a letter to this alphabet.

Parameters:
i - the index where to add the letter.
c - the letter to add to the alphabet

getLetter

public java.lang.Character getLetter(int i)
To get a letter from an index in the alphabet.

Parameters:
i - the index we want to get the letter.
Returns:
a Character instance of the letter found.