StringValue

public class StringValue implements Value

A Value containing an UTF-8 String.

Fields

Decoder

public static final Value.Decoder Decoder

The Value.Decoder for StringValues.

Constructors

StringValue

public StringValue(String s)

Creates a StringValue containing a String.

Parameters:
  • s – the string

Methods

encode

public static ByteBuffer encode(String s)

encode

public ByteBuffer encode()

equals

public boolean equals(Object obj)

getEncoding

public Encoding getEncoding()

getString

public String getString()

Returns the string from this StringValue

Returns:the string

hashCode

public int hashCode()

toString

public String toString()