T - a type of serializable objectpublic final class CheckingSerializerDecorator<T> extends java.lang.Object implements Serializer<T>
Serializer contract. These are required in Java code
that interacts with native code and accepts user-implemented serializers.| Modifier and Type | Method and Description |
|---|---|
static <T> CheckingSerializerDecorator<T> |
from(Serializer<T> serializer)
Creates a checking serializer decorator.
|
T |
fromBytes(byte[] serializedValue)
De-serializes a value from a given byte array.
|
byte[] |
toBytes(T value)
Serializes a given value into a byte array.
|
public static <T> CheckingSerializerDecorator<T> from(Serializer<T> serializer)
serializer - a serializer to decoratepublic byte[] toBytes(T value)
SerializertoBytes in interface Serializer<T>value - a value to serialize, must not be nullpublic T fromBytes(byte[] serializedValue)
SerializerfromBytes in interface Serializer<T>serializedValue - an array containing a serialized value of type T, must not be nullCopyright © 2018 Exonum. All rights reserved.