|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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)
Alphabet
Symbol
in this alphabet.
getIndexForSymbol
in interface Alphabet
public Symbol getSymbolByIndex(int index)
Alphabet
Symbol
with the given index in this alphabet.
getSymbolByIndex
in interface Alphabet
public Symbol addSymbol(Symbol symbol)
Alphabet
Symbol
to this alphabet.
addSymbol
in interface Alphabet
public Symbol addSymbol(Symbol symbol, int index)
Alphabet
Symbol
to this alphabet at the specified index.
addSymbol
in interface Alphabet
public List<Symbol> getSymbolList()
Alphabet
Symbol
objects in this alphabet.
getSymbolList
in interface Alphabet
public int size()
Alphabet
size
in interface Alphabet
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |