public final class WordData
extends java.lang.Object
implements java.lang.Cloneable
Important notes:
DictionaryLookup class. If you need a copy of the
stem or tag data for a given word, you have to create a custom buffer
yourself and copy the associated data, perform clone() or create
strings (they are immutable) using getStem() and then
CharSequence.toString().| Modifier and Type | Method and Description |
|---|---|
protected WordData |
clone()
Declare a covariant of
Object.clone() that returns a deep copy of
this object. |
boolean |
equals(java.lang.Object obj) |
java.lang.CharSequence |
getStem() |
java.nio.ByteBuffer |
getStemBytes(java.nio.ByteBuffer target)
Copy the stem's binary data (no charset decoding) to a custom byte
buffer.
|
java.lang.CharSequence |
getTag() |
java.nio.ByteBuffer |
getTagBytes(java.nio.ByteBuffer target)
Copy the tag's binary data (no charset decoding) to a custom byte buffer.
|
java.lang.CharSequence |
getWord() |
java.nio.ByteBuffer |
getWordBytes(java.nio.ByteBuffer target)
Copy the inflected word's binary data (no charset decoding) to a custom
byte buffer.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.nio.ByteBuffer getStemBytes(java.nio.ByteBuffer target)
target - Target byte buffer to copy the stem buffer to or
null if a new buffer should be allocated.target or the new reallocated buffer.public java.nio.ByteBuffer getTagBytes(java.nio.ByteBuffer target)
target - Target byte buffer to copy the tag buffer to or
null if a new buffer should be allocated.target or the new reallocated buffer.public java.nio.ByteBuffer getWordBytes(java.nio.ByteBuffer target)
target - Target byte buffer to copy the word buffer to or
null if a new buffer should be allocated.target or the new reallocated buffer.public java.lang.CharSequence getTag()
null if no associated tag data exists.public java.lang.CharSequence getStem()
null if no associated stem data exists.public java.lang.CharSequence getWord()
DictionaryLookup.lookup(CharSequence).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprotected WordData clone()
Object.clone() that returns a deep copy of
this object. The content of all internal buffers is copied.clone in class java.lang.ObjectCopyright © 2015. All Rights Reserved.