Class Version
java.lang.Object
org.apache.maven.shared.release.versions.Version
- All Implemented Interfaces:
Cloneable
,Comparable<Version>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AetherVersion
static final Pattern
private String
private static final int
private static final int
private static final int
private static final int
private String
private String
private String
private static final int
private static final int
private String
private final String
private static final String
private static final String
private static final String
private static final int
private final MavenArtifactVersion
private static final String
static final Pattern
private final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
protected static String
getVersionString
(Version info, String buildSpecifier, String buildSeparator) boolean
protected static String
joinDigitString
(List<String> digits) Simply joins the items in the list with "." periodprivate static String
parseDigits
(String strDigits) Splits the string on "." and returns a list containing each digit.setAnnotationRevision
(String newAnnotationRevision) setBuildSpecifier
(String newBuildSpecifier) toString()
-
Field Details
-
aetherVersion
-
mavenArtifactVersion
-
strVersion
-
digits
-
annotation
-
annotationRevision
-
buildSpecifier
-
annotationSeparator
-
annotationRevSeparator
-
buildSeparator
-
DIGITS_INDEX
private static final int DIGITS_INDEX- See Also:
-
ANNOTATION_SEPARATOR_INDEX
private static final int ANNOTATION_SEPARATOR_INDEX- See Also:
-
ANNOTATION_INDEX
private static final int ANNOTATION_INDEX- See Also:
-
ANNOTATION_REV_SEPARATOR_INDEX
private static final int ANNOTATION_REV_SEPARATOR_INDEX- See Also:
-
ANNOTATION_REVISION_INDEX
private static final int ANNOTATION_REVISION_INDEX- See Also:
-
BUILD_SEPARATOR_INDEX
private static final int BUILD_SEPARATOR_INDEX- See Also:
-
BUILD_SPECIFIER_INDEX
private static final int BUILD_SPECIFIER_INDEX- See Also:
-
SNAPSHOT_IDENTIFIER
- See Also:
-
DIGIT_SEPARATOR_STRING
- See Also:
-
DEFAULT_ANNOTATION_REV_SEPARATOR
- See Also:
-
DEFAULT_BUILD_SEPARATOR
- See Also:
-
STANDARD_PATTERN
-
ALTERNATE_PATTERN
-
-
Constructor Details
-
Version
-
Version
- Throws:
VersionParseException
-
-
Method Details
-
isSnapshot
public boolean isSnapshot() -
toString
-
joinDigitString
Simply joins the items in the list with "." period- Parameters:
digits
-
-
parseDigits
Splits the string on "." and returns a list containing each digit.- Parameters:
strDigits
-
-
nullIfEmpty
-
getDigits
-
getAnnotation
-
getAnnotationRevSeparator
-
getAnnotationRevision
-
getBuildSeparator
-
getBuildSpecifier
-
setDigits
- Parameters:
newDigits
- the new list of digits- Returns:
- a new instance of Version
-
setAnnotationRevision
- Parameters:
newAnnotationRevision
- the new annotation revision- Returns:
- a new instance of Version
-
setBuildSpecifier
- Parameters:
newBuildSpecifier
- the new build specifier- Returns:
- a new instance of Version
-