public abstract class SerializableType extends Object implements Comparable<Object>
| Constructor and Description |
|---|
SerializableType(DataTypes dataType)
Creates a SerializableType object and stores is concrete data type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SerializableType |
copy() |
static SerializableType |
deserializeDataType(DataTypes dataType,
io.netty.buffer.ByteBuf in)
A static method that deserializes a SerializableType by receiving it's concrete data type as an argument.
|
DataTypes |
getDataType()
Gets the data type of the object.
|
abstract Object |
getValue()
Gets the value stored by the object.
|
abstract void |
serialize(io.netty.buffer.ByteBuf out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTopublic SerializableType(DataTypes dataType)
dataType - a PrimitiveDataType enumerator instance.public DataTypes getDataType()
public abstract Object getValue()
public abstract void serialize(io.netty.buffer.ByteBuf out)
throws IOException
IOExceptionpublic abstract SerializableType copy()
public static SerializableType deserializeDataType(DataTypes dataType, io.netty.buffer.ByteBuf in) throws IOException
dataType - data type of the objectin - ByteBuf where the object is storedIOException - if there is an error parsing the objectCopyright © 2024. All rights reserved.