public class ByteSerializerFactory extends Object
ByteSerializer classes for type objects.| Constructor and Description |
|---|
ByteSerializerFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> ByteSerializer<T> |
getByteSerializer(T source)
Obtains a
ByteSerializer for the specified casper type object. |
<T> ByteSerializer<T> |
getByteSerializerByType(Class<T> type)
Obtains a
ByteSerializer for the specified casper type object class. |
protected void |
register(ByteSerializer<?> byteSerializer) |
public <T> ByteSerializer<T> getByteSerializer(T source)
ByteSerializer for the specified casper type object.T - the type of the type objectsource - the type object to obtain a byte serializer forpublic <T> ByteSerializer<T> getByteSerializerByType(Class<T> type)
ByteSerializer for the specified casper type object class.T - the type of the objecttype - the class of type object to obtain a byte serializer forprotected void register(ByteSerializer<?> byteSerializer)
Copyright © 2022. All rights reserved.