- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetBuild()Gets the build number.static VersiongetInstance(int major, int minor, int release, int build) Gets a version number instance from its component parts.intgetMajor()Gets the major version number.intgetMinor()Gets the minor version number.intGets the release number.inthashCode()toString()The toString representation ismajor.minor.release.build.static VersionParses 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.
-
