public class Version
extends java.lang.Object
| Constructor and Description |
|---|
Version()
Constructor for Version.
|
Version(int major,
int minor,
int patch)
Object constructor.
|
Version(int major,
int minor,
int patch,
java.lang.String snapshotInfo)
Object constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Version |
defaultVersion()
defaultVersion.
|
int |
getMajor()
Getter for the field
major. |
int |
getMinor()
Getter for the field
minor. |
int |
getPatch()
Getter for the field
patch. |
java.lang.String |
getSnapshotInfo()
Getter for the field
snapshotInfo. |
boolean |
isSnapshot()
isSnapshot.
|
void |
setMajor(int major)
Setter for the field
major. |
void |
setMinor(int minor)
Setter for the field
minor. |
void |
setPatch(int patch)
Setter for the field
patch. |
void |
setSnapshotInfo(java.lang.String snapshotInfo)
Setter for the field
snapshotInfo. |
java.lang.String |
toString() |
public Version()
Constructor for Version.
public Version(int major,
int minor,
int patch)
major - Major version number.minor - Minor version number.patch - Patch number.public Version(int major,
int minor,
int patch,
java.lang.String snapshotInfo)
major - Major version number.minor - Minor version number.patch - Patch number.snapshotInfo - Snapshot id or name.public int getMajor()
Getter for the field major.
public void setMajor(int major)
Setter for the field major.
major - a int.public int getMinor()
Getter for the field minor.
public void setMinor(int minor)
Setter for the field minor.
minor - a int.public int getPatch()
Getter for the field patch.
public void setPatch(int patch)
Setter for the field patch.
patch - a int.public java.lang.String getSnapshotInfo()
Getter for the field snapshotInfo.
String object.public void setSnapshotInfo(java.lang.String snapshotInfo)
Setter for the field snapshotInfo.
snapshotInfo - a String object.public boolean isSnapshot()
isSnapshot.
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All rights reserved.