- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getBuild()
Gets the build number.static Version
getInstance
(int major, int minor, int release, int build) Gets a version number instance from its component parts.int
getMajor()
Gets the major version number.int
getMinor()
Gets the minor version number.int
Gets the release number.int
hashCode()
toString()
The toString representation ismajor.minor.release.build
.static Version
Parses a version number from its string representation.
-
Method Details
-
getInstance
Gets a version number instance from its component parts. -
valueOf
Parses a version number from its string representation.- Throws:
IllegalArgumentException
- See Also:
-
toString
The toString representation ismajor.minor.release.build
. -
equals
-
hashCode
public int hashCode() -
getMajor
public int getMajor()Gets the major version number.A change in the first number means a radically new code base, complete uninstall/reinstall may be necessary.
-
getMinor
public int getMinor()Gets the minor version number.A change in the second number means significant features have been added, but are generally compatible with previous versions. Update strongly recommended.
-
getRelease
public int getRelease()Gets the release number.A change in the third number means fixes or improvements to existing features, but maintaining compatibility with current version. Update recommended.
-
getBuild
public int getBuild()Gets the build number.A change in the build number only indicates minor fixes or improvements to existing features. Update not required or even suggested.
-