public interface SerializationHandle<T>
| Modifier and Type | Method and Description |
|---|---|
<I> T |
deserialize(DeserializationAdapter<I> adapter,
I input) |
T |
fromJsonCompatibleSnapshot(Map<String,Object> snapshot) |
Class<T> |
getSerializedType() |
int |
getTypeId() |
String |
getTypeName() |
default double[] |
readDoubleArray(Map<String,Object> snapshot,
String fieldName) |
default int |
readIntValue(Map<String,Object> snapshot,
String fieldName) |
default long[] |
readLongArray(Map<String,Object> snapshot,
String fieldName) |
default Long |
readLongValue(Map<String,Object> snapshot,
String fieldName) |
default Integer |
readOptionalIntValue(Map<String,Object> snapshot,
String fieldName) |
default Long |
readOptionalLongValue(Map<String,Object> snapshot,
String fieldName) |
<O> void |
serialize(SerializationAdapter<O> adapter,
O output,
T serializableObject,
Version backwardCompatibilityVersion,
Scope scope) |
Map<String,Object> |
toJsonCompatibleSnapshot(T serializableObject,
Version backwardCompatibilityVersion,
Scope scope) |
<I> T deserialize(DeserializationAdapter<I> adapter, I input) throws IOException
IOException<O> void serialize(SerializationAdapter<O> adapter, O output, T serializableObject, Version backwardCompatibilityVersion, Scope scope) throws IOException
IOExceptionint getTypeId()
T fromJsonCompatibleSnapshot(Map<String,Object> snapshot) throws IOException
IOExceptionMap<String,Object> toJsonCompatibleSnapshot(T serializableObject, Version backwardCompatibilityVersion, Scope scope) throws IOException
IOExceptionString getTypeName()
default Long readOptionalLongValue(Map<String,Object> snapshot, String fieldName)
default Integer readOptionalIntValue(Map<String,Object> snapshot, String fieldName)
Copyright © 2024. All rights reserved.