|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.ls5.jlearn.shared.AlphabetImpl
public class AlphabetImpl
| Constructor Summary | |
|---|---|
AlphabetImpl()
|
|
| Method Summary | |
|---|---|
Symbol |
addSymbol(Symbol symbol)
Add Symbol to this alphabet. |
Symbol |
addSymbol(Symbol symbol,
int index)
Add Symbol to this alphabet at the specified index. |
boolean |
equals(Object obj)
|
int |
getIndexForSymbol(Symbol symbol)
Return index of the given Symbol in this alphabet. |
Symbol |
getSymbolByIndex(int index)
Return Symbol with the given index in this alphabet. |
List<Symbol> |
getSymbolList()
Return a list of all Symbol objects in this alphabet. |
int |
size()
Return number of smybols in this alphabet. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlphabetImpl()
| Method Detail |
|---|
public int getIndexForSymbol(Symbol symbol)
AlphabetSymbol in this alphabet.
getIndexForSymbol in interface Alphabetpublic Symbol getSymbolByIndex(int index)
AlphabetSymbol with the given index in this alphabet.
getSymbolByIndex in interface Alphabetpublic Symbol addSymbol(Symbol symbol)
AlphabetSymbol to this alphabet.
addSymbol in interface Alphabet
public Symbol addSymbol(Symbol symbol,
int index)
AlphabetSymbol to this alphabet at the specified index.
addSymbol in interface Alphabetpublic List<Symbol> getSymbolList()
AlphabetSymbol objects in this alphabet.
getSymbolList in interface Alphabetpublic int size()
Alphabet
size in interface Alphabetpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||