|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.northwestern.at.monk.model.WordPart
public class WordPart
A word part.
| Method Summary | |
|---|---|
int |
compareTo(WordPart other)
Compares this instance with another. |
boolean |
equals(java.lang.Object obj)
Returns true if this object equals some other object. |
static java.lang.String |
formatAsString(WordPart... wordParts)
Formats a sequence of word parts as a string. |
Lemma |
getLemma()
Gets the lemma. |
Pos |
getPos()
Gets the part of speech. |
Word |
getWord()
Gets the word. |
int |
hashCode()
Returns a hash code for this object. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Word getWord()
public Lemma getLemma()
public Pos getPos()
public static java.lang.String formatAsString(WordPart... wordParts)
wordParts - Sequence of contiguous word parts.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object.
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(WordPart other)
Word parts are ordered by lemmma first, then by pos.
compareTo in interface java.lang.Comparable<WordPart>other - The other instance to be compared.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||