public class HotfixVersionInfo extends Object implements org.apache.maven.shared.release.versions.VersionInfo
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
ALTERNATE_PATTERN |
static Pattern |
STANDARD_PATTERN |
| Constructor and Description |
|---|
HotfixVersionInfo(List<String> digits,
String annotation,
String annotationRevision,
String buildSpecifier,
String annotationSeparator,
String annotationRevSeparator,
String buildSeparator) |
HotfixVersionInfo(String version)
Constructs this object and parses the supplied version string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(org.apache.maven.shared.release.versions.VersionInfo obj)
Compares this
HotfixVersionInfo to the supplied HotfixVersionInfo
to determine which version is greater. |
boolean |
equals(Object obj) |
String |
getAnnotation() |
String |
getAnnotationRevision() |
String |
getBuildSpecifier() |
String |
getDecrementedHotfixVersionString() |
List<String> |
getDigits() |
String |
getHotfixVersionString() |
org.apache.maven.shared.release.versions.VersionInfo |
getNextVersion() |
String |
getReleaseVersionString() |
String |
getSnapshotVersionString() |
protected static String |
getVersionString(HotfixVersionInfo info,
String buildSpecifier,
String buildSeparator) |
protected String |
incrementVersionString(String s)
Takes a string and increments it as an integer.
|
boolean |
isSnapshot() |
protected static String |
joinDigitString(List<String> digits)
Simply joins the items in the list with "." period
|
String |
toString() |
public static final Pattern STANDARD_PATTERN
public static final Pattern ALTERNATE_PATTERN
public HotfixVersionInfo(String version) throws org.apache.maven.shared.release.versions.VersionParseException
version - org.apache.maven.shared.release.versions.VersionParseExceptionpublic boolean isSnapshot()
isSnapshot in interface org.apache.maven.shared.release.versions.VersionInfopublic org.apache.maven.shared.release.versions.VersionInfo getNextVersion()
getNextVersion in interface org.apache.maven.shared.release.versions.VersionInfopublic int compareTo(org.apache.maven.shared.release.versions.VersionInfo obj)
HotfixVersionInfo to the supplied HotfixVersionInfo
to determine which version is greater.compareTo in interface Comparable<org.apache.maven.shared.release.versions.VersionInfo>obj - the comparison versionIllegalArgumentException - if the components differ between the objects or if either of the annotations can not be determined.protected String incrementVersionString(String s)
s - public String getSnapshotVersionString()
getSnapshotVersionString in interface org.apache.maven.shared.release.versions.VersionInfopublic String getReleaseVersionString()
getReleaseVersionString in interface org.apache.maven.shared.release.versions.VersionInfopublic String getHotfixVersionString()
public String getDecrementedHotfixVersionString()
protected static String getVersionString(HotfixVersionInfo info, String buildSpecifier, String buildSeparator)
protected static String joinDigitString(List<String> digits)
digits - public String getAnnotation()
public String getAnnotationRevision()
public String getBuildSpecifier()
Copyright © 2014 Atlassian. All rights reserved.