Package org.dellroad.stuff.pobj
Class PersistentObject.Snapshot
java.lang.Object
org.dellroad.stuff.pobj.PersistentObject.Snapshot
- Enclosing class:
- PersistentObject<T>
Holds a "snapshot" of a
PersistentObject
root object along with the version number
corresponding to the snapshot.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRoot()
Get the persistent root associated with this instance.long
Get the version number of the persistent root associated with this instance.
-
Constructor Details
-
Snapshot
-
-
Method Details
-
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
-