Interface Evolvable

  • All Known Implementing Classes:
    EvolvableObject

    public interface Evolvable
    An interface that can be implemented by data classes in order to support schema evolution.

    This interface is used in combination with EvolvableHandler in order to prevent data loss during serialization across different versions of data classes.

    Author:
    Aleks Seovic 2018.05.20
    • Method Detail

      • addUnknownProperty

        void addUnknownProperty​(String propName,
                                javax.json.JsonValue propValue)
        Add unknown property to this instance.
        Parameters:
        propName - property name
        propValue - property value
      • unknownProperties

        Map<String,​javax.json.JsonValue> unknownProperties()
        Return a map of unknown properties.
        Returns:
        a map of unknown properties