|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectkwic.Phrase
public class Phrase
Represent a phrase
| Field Summary | |
|---|---|
protected String |
phrase
|
| Constructor Summary | |
|---|---|
Phrase(String s)
|
|
| Method Summary | |
|---|---|
protected static String |
cleanUp(String s)
Filter the supplied String (which is the String of
a Phrase presumably) into a canonical form
for subsequent matching. |
boolean |
equals(Object o)
The behavior of this lab depends on how you view this method. |
Set<Word> |
getWords()
Provide the words of a phrase. |
int |
hashCode()
This method must also be properly defined, or else your HashSet
structure won't operate properly. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String phrase
| Constructor Detail |
|---|
public Phrase(String s)
| Method Detail |
|---|
public Set<Word> getWords()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
HashSet
structure won't operate properly.
hashCode in class Objectprotected static String cleanUp(String s)
String (which is the String of
a Phrase presumably) into a canonical form
for subsequent matching.
The acutal filtering depends on what you consider to be
insignificant in terms of matching.
public String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||