Package tools.refinery.store.map
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
-
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
Restores the state of the object.
-