|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.structs.WordDefinition
public class WordDefinition
A serializable word definition.
| Field Summary | |
|---|---|
int |
Hash
A hash corresponding to the word described by the definition. |
java.lang.String |
Word
The word described by the definition. |
| Constructor Summary | |
|---|---|
WordDefinition(java.lang.String sWord)
Creates a new instance of WordDefinition, given a word. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object oObj)
Compares two word definitions. |
int |
hashCode()
Returns the hashcode of this word. |
static int |
hashWord(java.lang.String sWord)
Calculates a hash for the word: (size * 8192) + ascii code sum. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String Word
public int Hash
| Constructor Detail |
|---|
public WordDefinition(java.lang.String sWord)
sWord - The word.| Method Detail |
|---|
public static int hashWord(java.lang.String sWord)
sWord - The word to hash.public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object oObj)
equals in class java.lang.ObjectoObj - The word definition to compare this definition with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||