public class Version extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Version>
| Constructor and Description |
|---|
Version(int[] components,
java.lang.String qualifier)
Constructor.
|
Version(java.lang.String versionString)
Constructor that parses the version from a string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public static final Version SNAPSHOT
public Version(int[] components,
java.lang.String qualifier)
components - the numeric components of the version; may be null for SNAPSHOT versionqualifier - the qualifierpublic Version(java.lang.String versionString)
throws java.text.ParseException
integer ( "." integer )* ( "-" qualifier )?
versionString - the string representation of the versionjava.text.ParseException - if the version is not in the correct formatCopyright © 2004-2021 The Apache Software Foundation. All Rights Reserved.