public class FieldValue extends Object implements EncodableData
field-value = 't' boolean 'b' short-short-int 'B' short-short-uint 'U' short-int 'u' short-uint 'I' long-int 'i' long-uint 'L' long-long-int 'l' long-long-uint 'f' float 'd' double 'D' decimal-value 's' short-string 'S' long-string 'A' field-array 'T' timestamp 'F' field-table 'V' ; no field
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldValue.Type
Denotes the
FieldValue data type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getSize() |
FieldValue.Type |
getType() |
EncodableData |
getValue() |
long |
getValueSize()
Retrieve size of the underlying
EncodableData. |
int |
hashCode() |
static FieldValue |
parse(io.netty.buffer.ByteBuf buf) |
static FieldValue |
parseBoolean(Boolean amqpBoolean) |
static FieldValue |
parseFieldTable(FieldTable fieldTable) |
static FieldValue |
parseLongInt(int value) |
static FieldValue |
parseLongInt(LongInt value) |
static FieldValue |
parseLongLongInt(long value) |
static FieldValue |
parseLongLongInt(LongLongInt value) |
static FieldValue |
parseLongString(LongString value) |
static FieldValue |
parseLongString(String value) |
static FieldValue |
parseShortShortInt(byte value) |
static FieldValue |
parseShortShortInt(ShortShortInt value) |
static FieldValue |
parseShortString(ShortString value) |
static FieldValue |
parseShortString(String value) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf) |
public long getSize()
getSize in interface EncodableDatapublic long getValueSize()
EncodableData.public void write(io.netty.buffer.ByteBuf buf)
write in interface EncodableDatapublic static FieldValue parse(io.netty.buffer.ByteBuf buf) throws Exception
Exceptionpublic FieldValue.Type getType()
public EncodableData getValue()
public static FieldValue parseLongInt(int value)
public static FieldValue parseLongInt(LongInt value)
public static FieldValue parseLongString(String value)
public static FieldValue parseLongString(LongString value)
public static FieldValue parseShortString(String value)
public static FieldValue parseShortString(ShortString value)
public static FieldValue parseBoolean(Boolean amqpBoolean)
public static FieldValue parseShortShortInt(byte value)
public static FieldValue parseShortShortInt(ShortShortInt value)
public static FieldValue parseLongLongInt(long value)
public static FieldValue parseLongLongInt(LongLongInt value)
public static FieldValue parseFieldTable(FieldTable fieldTable)
public String toString()
toString in interface EncodableDatatoString in class ObjectCopyright © 2018 WSO2. All rights reserved.