Package io.atomix.utils
Class Version
java.lang.Object
io.atomix.utils.Version
- All Implemented Interfaces:
Comparable<Version>
Atomix software version.
NOTE: eventually we should stop using this and use SemanticVersion directly instead.
-
Method Summary
-
Method Details
-
major
public int major() -
minor
public int minor() -
patch
public int patch() -
preRelease
-
buildMetadata
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-
hashCode
public int hashCode() -
equals
-
toString
-