Interface VersionInfo
-
- All Superinterfaces:
java.lang.Comparable<VersionInfo>
- All Known Implementing Classes:
DefaultVersionInfo
public interface VersionInfo extends java.lang.Comparable<VersionInfo>
Represent the different version representations during the release-prepare phase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VersionInfo
getNextVersion()
Returns aVersionInfo
object which represents the next version of this object.java.lang.String
getReleaseVersionString()
Returns a string representing the version without a snapshot specification.java.lang.String
getSnapshotVersionString()
Returns a string representing the version with a snapshot specificationboolean
isSnapshot()
Returns whether this represents a snapshot version.
-
-
-
Method Detail
-
getSnapshotVersionString
java.lang.String getSnapshotVersionString()
Returns a string representing the version with a snapshot specification- Returns:
- the snapshot version transformation of the original value
-
getReleaseVersionString
java.lang.String getReleaseVersionString()
Returns a string representing the version without a snapshot specification.- Returns:
- the final version transformation of the original value
-
getNextVersion
VersionInfo getNextVersion()
Returns aVersionInfo
object which represents the next version of this object.- Returns:
- the next VersionInfo
-
isSnapshot
boolean isSnapshot()
Returns whether this represents a snapshot version.- Returns:
true
if the original value was a snapshot, otherwisefalse
-
-