IntValue

public class IntValue implements Value

A Value containing a 64-bits signed integer (i.e. a Java long).

Fields

Decoder

public static final Value.Decoder Decoder

The Value.Decoder for StringValues.

Constructors

IntValue

public IntValue(long v)

Creates an IntValue containing a long.

Parameters:
  • v – the long

Methods

encode

public static ByteBuffer encode(long v)

encode

public ByteBuffer encode()

equals

public boolean equals(Object obj)

getEncoding

public Encoding getEncoding()

getInt

public long getInt()

Returns the string from this StringValue

Returns:the string

hashCode

public int hashCode()

toString

public String toString()