|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectkwic.Word
public class Word
Represents the original and matching forms of a word.
You must implement
Object.hashCode() correctly as well as
Object.equals(Object)
for this to work.
| Constructor Summary | |
|---|---|
Word(String w)
Represent a word of a Phrase |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
You must implement this so that two words equal each other if their matched forms equal each other. |
String |
getMatchWord()
The word used for matching is the original word run throgh the WordCanonical filter. |
String |
getOriginalWord()
|
int |
hashCode()
You must implement this right, see header note |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Word(String w)
Phrase
w - The original word| Method Detail |
|---|
public String getMatchWord()
public String getOriginalWord()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||