Class BinarySerializerFactory
- java.lang.Object
-
- org.atlanmod.commons.io.serializer.BinarySerializerFactory
-
@ParametersAreNonnullByDefault public class BinarySerializerFactory extends Object
A factory that createsBinarySerializerinstances.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBinarySerializerFactory()Constructs a newBinarySerializerFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> BinarySerializer<T>forAny()Gets theBinarySerializerfor anyObject.static BinarySerializerFactorygetInstance()Returns the instance of this class.
-
-
-
Method Detail
-
getInstance
@Nonnull public static BinarySerializerFactory getInstance()
Returns the instance of this class.- Returns:
- the instance of this class
-
forAny
@Nonnull public <T> BinarySerializer<T> forAny()
Gets theBinarySerializerfor anyObject.- Type Parameters:
T- the type of (de)serialized objects- Returns:
- a serializer
-
-