public static class SerializerFactory.SingletonSerializerFactory<T extends Serializer> extends SerializerFactory.BaseSerializerFactory<T>
SerializerFactory.BaseSerializerFactory<T extends Serializer>, SerializerFactory.CompatibleFieldSerializerFactory, SerializerFactory.FieldSerializerFactory, SerializerFactory.ReflectionSerializerFactory<T extends Serializer>, SerializerFactory.SingletonSerializerFactory<T extends Serializer>, SerializerFactory.TaggedFieldSerializerFactory, SerializerFactory.VersionFieldSerializerFactory
Constructor and Description |
---|
SingletonSerializerFactory(T serializer) |
Modifier and Type | Method and Description |
---|---|
T |
newSerializer(Kryo kryo,
java.lang.Class type)
Creates and configures a new serializer.
|
isSupported
public SingletonSerializerFactory(T serializer)
public T newSerializer(Kryo kryo, java.lang.Class type)
SerializerFactory
kryo
- The Kryo instance that will be used with the new serializer.type
- The type of the object that the serializer will serialize.Copyright © 2019. All Rights Reserved.