public interface InternalVersion extends InternalVersionItem
Modifier and Type | Method and Description |
---|---|
Calendar |
getCreated()
Equivalent to
Version.getCreated() |
InternalFrozenNode |
getFrozenNode()
Returns the frozen node of this version.
|
NodeId |
getFrozenNodeId()
Returns the node id of the frozen node.
|
Name[] |
getLabels()
returns the labels that are assigned to this version
|
InternalVersion |
getLinearPredecessor()
Equivalent to
Version.getLinearPredecessor() |
InternalVersion |
getLinearSuccessor(InternalVersion baseVersion)
Equivalent to
Version.getLinearSuccessor() . |
Name |
getName()
Returns the name of this version.
|
InternalVersion[] |
getPredecessors()
Equivalent to
Version.getPredecessors() } |
List<InternalVersion> |
getSuccessors()
Equivalent to
Version.getSuccessors() } |
InternalVersionHistory |
getVersionHistory()
returns the internal version history in which this version lives in.
|
boolean |
hasLabel(Name label)
Checks, if this version has the given label associated
|
boolean |
isMoreRecent(InternalVersion v)
Checks if this version is more recent than the given version
v . |
boolean |
isRootVersion()
checks if this is the root version.
|
getId, getParent
Name getName()
InternalFrozenNode getFrozenNode()
NodeId getFrozenNodeId()
Calendar getCreated()
Version.getCreated()
Version.getCreated()
List<InternalVersion> getSuccessors()
Version.getSuccessors()
}Version.getSuccessors()
InternalVersion getLinearSuccessor(InternalVersion baseVersion)
Version.getLinearSuccessor()
.baseVersion
- base version to determine single line of descentVersion.getLinearSuccessor()
InternalVersion[] getPredecessors()
Version.getPredecessors()
}Version.getPredecessors()
InternalVersion getLinearPredecessor()
Version.getLinearPredecessor()
Version.getLinearPredecessor()
boolean isMoreRecent(InternalVersion v)
v
.
A version is more recent if and only if it is a successor (or a successor
of a successor, etc., to any degree of separation) of the compared one.v
- the version to checktrue
if the version is more recent;
false
otherwise.InternalVersionHistory getVersionHistory()
boolean isRootVersion()
true
if this version is the root version;
false
otherwise.boolean hasLabel(Name label)
label
- the label to check.true
if the label is assigned to this version;
false
otherwise.Name[] getLabels()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.