Package io.atomix.utils
Class Version
java.lang.Object
io.atomix.utils.Version
- All Implemented Interfaces:
Comparable<Version>
Atomix software version.
-
Method Details
-
from
Returns a new version from the given version string.- Parameters:
version- the version string- Returns:
- the version object
- Throws:
IllegalArgumentException- if the version string is invalid
-
from
Returns a new version from the given parts.- Parameters:
major- the major version numberminor- the minor version numberpatch- the patch version numberbuild- the build version number- Returns:
- the version object
-
build
Returns the build version number.- Returns:
- the build version number
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-
hashCode
public int hashCode() -
equals
-
toString
-