|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 GroupingObject
public Spelling getGroupingSpelling(int numHits)
getGroupingSpelling
in interface GroupingObject
numHits
- Number of hits.
public Spelling toInsensitive()
public java.lang.String toString()
toString
in class java.lang.Object
public 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 GroupingObject
equals
in class java.lang.Object
obj
- 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 GroupingObject
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- 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 |