public class Version extends Object implements Comparable<Version>
VERSION_REGEX
Accepted initial version is MINIMAL_VERSION_STRING| Modifier and Type | Field and Description |
|---|---|
protected int |
major |
static Version |
MINIMAL_VERSION
Accepted initial version as TypeVersion instance
|
static String |
MINIMAL_VERSION_DESCRIPTION
Default changelog description for the initial version
|
static String |
MINIMAL_VERSION_STRING
Accepted initial version
|
protected int |
minor |
protected int |
revision |
static String |
VERSION_REGEX
Regex validating the version
|
| Modifier | Constructor and Description |
|---|---|
protected |
Version() |
|
Version(int major,
int minor,
int revision) |
|
Version(String version) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
check() |
int |
compareTo(Version other) |
boolean |
equals(Object obj) |
int |
getMajor() |
int |
getMinor() |
int |
getRevision() |
int |
hashCode() |
protected void |
setMajor(int major) |
protected void |
setMinor(int minor) |
protected void |
setRevision(int revision) |
void |
setVersion(String version) |
String |
toString() |
public static final String VERSION_REGEX
public static final String MINIMAL_VERSION_STRING
public static final Version MINIMAL_VERSION
public static final String MINIMAL_VERSION_DESCRIPTION
protected int major
protected int minor
protected int revision
protected Version()
public Version(String version)
public Version(int major,
int minor,
int revision)
public void setVersion(String version)
protected void check()
public int getMajor()
protected void setMajor(int major)
public int getMinor()
protected void setMinor(int minor)
public int getRevision()
protected void setRevision(int revision)
public int compareTo(Version other)
compareTo in interface Comparable<Version>Copyright © 2022. All Rights Reserved.