public class ImmutableClassSerializer<T>
Serializes properties and deserializes by using the constructor. This assumes that all backed properties are set via the constructor and the class is immutable.
Constructor and Description |
---|
ImmutableClassSerializer(kotlin.reflect.KClass<T> klass)
Serializes properties and deserializes by using the constructor. This assumes that all backed properties are
set via the constructor and the class is immutable.
|
Modifier and Type | Method and Description |
---|---|
kotlin.reflect.KFunction<T> |
getConstructor() |
kotlin.reflect.KClass<T> |
getKlass() |
java.util.List<kotlin.reflect.KProperty1> |
getProps() |
java.util.Map<java.lang.String,kotlin.reflect.KProperty1> |
getPropsByName() |
T |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
java.lang.Class<T> type) |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
T obj) |
public ImmutableClassSerializer(kotlin.reflect.KClass<T> klass)
Serializes properties and deserializes by using the constructor. This assumes that all backed properties are set via the constructor and the class is immutable.
public java.util.List<kotlin.reflect.KProperty1> getProps()
public java.util.Map<java.lang.String,kotlin.reflect.KProperty1> getPropsByName()
public kotlin.reflect.KFunction<T> getConstructor()
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, T obj)
public T read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, java.lang.Class<T> type)
public kotlin.reflect.KClass<T> getKlass()