Interface Versioned

All Known Subinterfaces:
AnyVersionedMap, Model, VersionedMap<K,V>
All Known Implementing Classes:
ModelImpl, VersionedMapDeltaImpl, VersionedMapStateImpl

public interface Versioned
Object that can save and restore its state.
  • Method Summary

    Modifier and Type
    Method
    Description
    Saves the state of the object.
    void
    Restores the state of the object.
  • Method Details

    • commit

      Version commit()
      Saves the state of the object.
      Returns:
      an object that marks the version of the object at the time the function was called.
    • restore

      void restore(Version state)
      Restores the state of the object.
      Parameters:
      state - a Version object that marks the version. The state must be a Version object returned by a previous commit()!