Package com.qfs.multiversion
Interface IVersionNode<V extends IVersion,P extends IVersionNode<V,P>>
- Type Parameters:
V- the type of version on which this node isP- the type of the previous node
- All Known Implementing Classes:
VersionNode
public interface IVersionNode<V extends IVersion,P extends IVersionNode<V,P>>
A node containing a version. Used for chaining of versions.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionThe epoch node associated with this version node.Gets theIVersionNodethat precedes this version node.Gets the version contained in this node.
-
Method Details
-
getVersion
V getVersion()Gets the version contained in this node.- Returns:
- the contained version
-
getPrevious
P getPrevious()Gets theIVersionNodethat precedes this version node.- Returns:
- the
IVersionNodethat precedes this version node
-
getHistoryNode
IHistoryNode getHistoryNode()The epoch node associated with this version node.- Returns:
- the epoch node
-