Interface MigratedSerializable
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
LegacySerializable
Transitional marker interface for use with evolution of serializable classes held in persistence. This interface
should be implemented by replacement classes for as long as the old classes are supported.
- Author:
- Robert Varga
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this object was created from a previous serialization format.@NonNull Object
Return a serialization proxy.
-
Method Details
-
isMigrated
boolean isMigrated()Return true if this object was created from a previous serialization format.- Returns:
- true if this object was created from a previous serialization format, false otherwise.
-
writeReplace
@NonNull Object writeReplace()Return a serialization proxy. Implementations should not return this object, but rather use Externalizable proxy pattern so their serialization format is not tied to this interface.- Returns:
- Serialization proxy.
-