Class PersistentObject.Snapshot

java.lang.Object
org.dellroad.stuff.pobj.PersistentObject.Snapshot
Enclosing class:
PersistentObject<T>

public class PersistentObject.Snapshot extends Object
Holds a "snapshot" of a PersistentObject root object along with the version number corresponding to the snapshot.
See Also:
  • Constructor Details

    • Snapshot

      public Snapshot(T root, long version)
  • Method Details

    • getRoot

      public T getRoot()
      Get the persistent root associated with this instance.
      Returns:
      persistent object associated with this snapshot
    • getVersion

      public long getVersion()
      Get the version number of the persistent root associated with this instance.
      Returns:
      version number associated with this snapshot