RawValue

public class RawValue implements Value

A Value containing a ByteBuffer.

Fields

Decoder

public static final Value.Decoder Decoder

The Value.Decoder for RawValues.

Constructors

RawValue

public RawValue(ByteBuffer buf)

Creates a RawValue containing a ByteBuffer.

Parameters:
  • buf – the bytes buffer.

Methods

encode

public ByteBuffer encode()

equals

public boolean equals(Object obj)

getBuffer

public ByteBuffer getBuffer()

Returns the ByteBuffer from this RawValue

Returns:the bytes buffer.

getEncoding

public Encoding getEncoding()

hashCode

public int hashCode()

toString

public String toString()