|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ls5.jlearn.shared.WordImpl
public class WordImpl
Constructor Summary | |
---|---|
WordImpl()
|
|
WordImpl(int length)
Deprecated. |
|
WordImpl(Symbol[] s)
|
Method Summary | |
---|---|
void |
addSymbol(Symbol symbol)
add Symbol to word |
int |
compareTo(Word w)
|
boolean |
equals(Object o)
|
Symbol[] |
getSymbolArray()
Assemble an array of symbols in this word |
Symbol |
getSymbolByIndex(int i)
Return symbol that is at the supplied position |
List<Symbol> |
getSymbolList()
Assemble a list of symbols in this word |
int |
hashCode()
|
boolean |
isPrefixOf(Word w)
Checks if this word is a prefix of the supplied word. |
int |
size()
Determine number of symbols in this word |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WordImpl()
@Deprecated public WordImpl(int length)
public WordImpl(Symbol[] s)
Method Detail |
---|
public void addSymbol(Symbol symbol)
Word
addSymbol
in interface Word
public Symbol[] getSymbolArray()
Word
getSymbolArray
in interface Word
public List<Symbol> getSymbolList()
Word
getSymbolList
in interface Word
public boolean isPrefixOf(Word w)
Word
isPrefixOf
in interface Word
public int compareTo(Word w)
compareTo
in interface Comparable<Word>
public int size()
Word
size
in interface Word
public Symbol getSymbolByIndex(int i)
Word
getSymbolByIndex
in interface Word
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |