Interface ISerializersNeeded
- All Known Implementing Classes:
Cards, GapShuffler, ProbabilityTable
public interface ISerializersNeeded
A single-method interface that allows getting the
Classes that must be registered with a serialization
library for an object of this type to be serialized successfully. This is meant to help register classes for Fory
serialization, but the same classes are typically needed for Kryo serialization. There is an exception for (1D)
primitive array and String array types, which Fory doesn't need registered, but Kryo does if one such type is given
by getSerializersNeeded() here. This is an instance method because individual objects may sometimes need
different classes registered, e.g. EnhancedRandom may need to be registered
along with the concrete subclass of EnhancedRandom that the current object uses.-
Method Summary
Modifier and TypeMethodDescriptionGets a List of Class instances that must each be registered with a serialization library before this object can be successfully serialized or deserialized.
-
Method Details
-
getSerializersNeeded
Gets a List of Class instances that must each be registered with a serialization library before this object can be successfully serialized or deserialized. This isGwtIncompatible; none of the serialization libraries this is meant for have any support for GWT.- Returns:
- a List of Class instances that must each be registered with a serialization library
-