Interface ModelVersion


  • public interface ModelVersion
    Model version. Created by miho on 03.03.17.
    • Method Summary

      Modifier and Type Method Description
      long timestamp()
      Returns the timestamp which denotes the creation of this model version.
      long versionNumber()
      Returns the model version number.
    • Method Detail

      • timestamp

        long timestamp()
        Returns the timestamp which denotes the creation of this model version.
        Returns:
        the timestamp which denotes the creation of this model version
      • versionNumber

        long versionNumber()
        Returns the model version number. While the version number is a great way to identify changes during the lifetime of a model instance, it cannot be used to compare previously serialized instances of the model with the current instantiation. Model versions are NOT unique among different model instances and/or multiple lifetimes of the same model instance (serialization/deserialization).
        Returns:
        the model version number