Method Summary |
|
public void | addSymbol(char ch) Adds the specified character to this alpabet.
Once added symbols can only be removed with clear(). |
public void | clear() |
public Object | clone() |
public boolean | containsSymbol(char ch) Returns true if this alphabet contains the specified character. |
public boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
public Character | getSymbol(int index) |
public int | idxSymbol(char ch) Returns the index in the alphabet for the specified character. |
public void | print() Prints the contents of the alphabet. |
public int | size() |
public String | toString() |