IntegerConverter¶
-
public class
IntegerConverterimplements Converter<ByteBuffer>¶ A converter with wire type
ByteBufferthat is capable of handling signed integers that fit into 32 bits by using the JavaIntegertype.- Author
jmoringe, jwienke
Fields¶
INT32_SIGNATURE¶
-
public static final ConverterSignature
INT32_SIGNATURE¶ Signature for using the converter with signed integers.
UINT32_SIGNATURE¶
-
public static final ConverterSignature
UINT32_SIGNATURE¶ Signature for using the converter with unsigned integers. This may result in overflows.
Constructors¶
IntegerConverter¶
-
public
IntegerConverter(ConverterSignature signature)¶ Constructor allowing different signatures.
- Parameters
signature – the signature to use
Methods¶
deserialize¶
-
public UserData<ByteBuffer>
deserialize(String wireSchema, ByteBuffer bytes)¶
getSignature¶
-
public ConverterSignature
getSignature()¶
serialize¶
-
public WireContents<ByteBuffer>
serialize(Class<?> typeInfo, Object data)¶