|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.model.wrappers.Spelling
public class Spelling
A spelling.
A spelling is a unicode string of text plus the character set used by the string.
| Constructor Summary | |
|---|---|
Spelling()
Creates a new spelling object. |
|
Spelling(java.lang.String string,
byte charset)
Creates a new spelling object. |
|
Spelling(java.lang.String string,
int charset)
Creates a new spelling object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Implement Comparable interface. |
boolean |
equals(java.lang.Object obj)
Returns true if this object is equal to some other object. |
boolean |
equalsIgnoreCase(java.lang.Object obj)
Returns true if this object is equal to some other object in a case insensitive fashion. |
boolean |
equalsInsensitive(java.lang.Object obj)
Returns true if this object is equal to some other object in a case and diacritical insensitive fashion. |
byte |
getCharset()
Gets the character set. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
java.lang.String |
getReportPhrase()
Gets the report phrase. |
java.lang.String |
getString()
Gets the string. |
int |
hashCode()
Returns a hash code for the object. |
Spelling |
toInsensitive()
Gets case and diacritical insensitive version of this spelling. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Spelling()
public Spelling(java.lang.String string,
byte charset)
string - String.charset - Character set.
public Spelling(java.lang.String string,
int charset)
string - String.charset - Character set. | Method Detail |
|---|
public java.lang.String getString()
public byte getCharset()
public java.lang.String getReportPhrase()
getReportPhrase in interface GroupingObjectpublic Spelling getGroupingSpelling(int numHits)
getGroupingSpelling in interface GroupingObjectnumHits - Number of hits.
public Spelling toInsensitive()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
The spellings are equal if their strings are identical and they have the same character set.
equals in interface GroupingObjectequals in class java.lang.Objectobj - The other object.
public boolean equalsIgnoreCase(java.lang.Object obj)
The spellings are equal if their strings are identical except ignoring case and they have the same character set.
obj - The other object.
public boolean equalsInsensitive(java.lang.Object obj)
The spellings are equal if their strings are identical except ignoring case and diacritics and if they have the same character set.
obj - The other object.
public int hashCode()
hashCode in interface GroupingObjecthashCode in class java.lang.Objectpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - Other spelling object to which to compare this object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||