ar.com.ktulu.dict
Class Key
java.lang.Object
|
+--ar.com.ktulu.dict.Key
- All Implemented Interfaces:
- java.lang.Comparable
- public class Key
- extends java.lang.Object
- implements java.lang.Comparable
A dictionary's headword.
- Author:
- Luis Parravicini
|
Field Summary |
(package private) static java.text.Collator |
collator
|
(package private) long |
length
|
(package private) long |
offset
|
(package private) java.text.CollationKey |
word
|
|
Constructor Summary |
Key(java.lang.String def)
|
Key(java.lang.String word,
long offset,
long length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
word
java.text.CollationKey word
offset
long offset
length
long length
collator
static java.text.Collator collator
Key
public Key(java.lang.String word,
long offset,
long length)
Key
public Key(java.lang.String def)
throws java.util.NoSuchElementException
getCollator
public static java.text.Collator getCollator()
getCollationKey
public java.text.CollationKey getCollationKey()
getWord
public java.lang.String getWord()
getOffset
public long getOffset()
getSize
public long getSize()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object