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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IHistoryNodegetHistoryNode()The epoch node associated with this version node.PgetPrevious()Gets theIVersionNodethat precedes this version node.VgetVersion()Gets the version contained in this node.
-
-
-
Method Detail
-
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
-
-