Package pro.gravit.utils
Class Version
- java.lang.Object
-
- pro.gravit.utils.Version
-
public final class Version extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersion.Type
-
Constructor Summary
Constructors Constructor Description Version(int major, int minor, int patch)Version(int major, int minor, int patch, int build)Version(int major, int minor, int patch, int build, Version.Type release)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetReleaseStatus()static VersiongetVersion()java.lang.StringgetVersionString()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
MAJOR
public static final int MAJOR
- See Also:
- Constant Field Values
-
MINOR
public static final int MINOR
- See Also:
- Constant Field Values
-
PATCH
public static final int PATCH
- See Also:
- Constant Field Values
-
BUILD
public static final int BUILD
- See Also:
- Constant Field Values
-
RELEASE
public static final Version.Type RELEASE
-
major
public final int major
-
minor
public final int minor
-
patch
public final int patch
-
build
public final int build
-
release
public final Version.Type release
-
-
Constructor Detail
-
Version
public Version(int major, int minor, int patch)
-
Version
public Version(int major, int minor, int patch, int build)
-
Version
public Version(int major, int minor, int patch, int build, Version.Type release)
-
-
Method Detail
-
getVersion
public static Version getVersion()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getVersionString
public java.lang.String getVersionString()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getReleaseStatus
public java.lang.String getReleaseStatus()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-