Class Version
java.lang.Object
software.amazon.awssdk.eventstreamrpc.Version
- All Implemented Interfaces:
Comparable<Version>
https://semver.org/ minus the labels
-
Field Summary
Fields -
Method Summary
-
Field Details
-
PATTERN
The Regex pattern used to parse versions from strings -
MAJOR
public static final int MAJORDefault major version number. Defaults to 0- See Also:
-
MINOR
public static final int MINORDefault minor version number. Defaults to 1- See Also:
-
PATCH
public static final int PATCHDefault patch version number. Defaults to 0- See Also:
-
-
Method Details
-
getInstance
- Returns:
- Returns an instance of the version
-
getVersionString
Returns the Version in string representation in the format: Major.Minor.Patch.- Returns:
- The Version converted to a string
-
toString
-
fromString
Returns a new Version class from the given version string. Will throw an exception if it cannot convert.- Parameters:
versionString- The version string to convert- Returns:
- The Version class created from the string
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-