public class StringKey extends Key
Constructor and Description |
---|
StringKey() |
StringKey(java.lang.String str) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the string
|
boolean |
equals(java.lang.Object object)
The overridden equals function
|
int |
getNumWriteBytes()
Get the number of bytes of encoded data
|
java.lang.String |
getStringKey()
Get the string
|
int |
hashCode()
The overridden hashCode function
|
void |
read(java.io.DataInput in)
Read the string from DataInput
|
void |
setStringKey(java.lang.String str)
Set string
|
void |
write(java.io.DataOutput out)
Write the string to DataOutput
|
create, encode, forClass, free, getNumEnocdeBytes, newInstance, release
public void setStringKey(java.lang.String str)
str
- the stringpublic java.lang.String getStringKey()
public boolean equals(java.lang.Object object)
public void write(java.io.DataOutput out) throws java.io.IOException
public void read(java.io.DataInput in) throws java.io.IOException
public int getNumWriteBytes()
getNumWriteBytes
in class Writable