public interface MessageType<T,W>
Modifier and Type | Method and Description |
---|---|
default T |
cast(java.lang.Object data) |
java.lang.Class<T> |
getClazz() |
DataPacker<T,W> |
getDataPacker() |
int |
getDataSizeInBytes(T data) |
default java.util.Comparator<T> |
getDefaultComparator() |
int |
getUnitSizeInBytes()
For arrays this method should return the size of an element in bytes
|
boolean |
isArray() |
boolean |
isPrimitive()
All primitive data types should return true, including the boxed types of primitives
|
boolean isPrimitive()
int getUnitSizeInBytes()
int getDataSizeInBytes(T data)
java.lang.Class<T> getClazz()
DataPacker<T,W> getDataPacker()
boolean isArray()
default T cast(java.lang.Object data)
default java.util.Comparator<T> getDefaultComparator()