public class ObjectType extends java.lang.Object implements MessageType<java.lang.Object,byte[]>
| Constructor and Description |
|---|
ObjectType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<java.lang.Object> |
getClazz() |
DataPacker<java.lang.Object,byte[]> |
getDataPacker() |
int |
getDataSizeInBytes(java.lang.Object data) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcast, getDefaultComparatorpublic boolean isPrimitive()
MessageTypeisPrimitive in interface MessageType<java.lang.Object,byte[]>public int getUnitSizeInBytes()
MessageTypegetUnitSizeInBytes in interface MessageType<java.lang.Object,byte[]>public int getDataSizeInBytes(java.lang.Object data)
getDataSizeInBytes in interface MessageType<java.lang.Object,byte[]>public java.lang.Class<java.lang.Object> getClazz()
getClazz in interface MessageType<java.lang.Object,byte[]>public DataPacker<java.lang.Object,byte[]> getDataPacker()
getDataPacker in interface MessageType<java.lang.Object,byte[]>public boolean isArray()
isArray in interface MessageType<java.lang.Object,byte[]>