public class BytesText extends Objectimplements Text
BytesReference representation of the text, will always convert on the fly to a
String.
| Constructor and Description |
|---|
BytesText(BytesReference
|
| Modifier and Type | Method and Description |
|---|---|
BytesReference |
bytes()
The UTF8 bytes representing the the text, might be converted on the fly, see
Text
|
int |
compareTo(Text
|
boolean |
equals(Object
|
boolean |
hasBytes()
Are bytes available without the need to be converted into bytes when calling
Text.
|
int |
hashCode()
|
boolean |
hasString()
Is there a
String representation of the text.
|
String |
string()
Returns the string representation of the text, might be converted to a string on the fly.
|
String |
toString()
Returns the string representation of the text, might be converted to a string on the fly.
|
public BytesText(BytesReferencebytes)
public boolean hasBytes()
Text
Text.bytes() .
public BytesReferencebytes()
Text
Text.hasBytes()
public boolean hasString()
Text
String representation of the text. If not, then it
Text.hasBytes() .
public Stringstring()
Text
public StringtoString()
Text
public int hashCode()
public boolean equals(Objectobj)
public int compareTo(Texttext)