Package com.elo.gradle.osgi.utils
Class Version
java.lang.Object
com.elo.gradle.osgi.utils.Version
- All Implemented Interfaces:
Comparable<Version>
Class representing a version. Used to compare them
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordClass representing an OSGi version range. -
Field Summary
Fields -
Method Summary
-
Field Details
-
VERSION_REGEX
- See Also:
-
-
Method Details
-
toString
-
toRawString
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-
isSmallerThanEqual
-
isSmallerThan
-
isGreaterThanEqual
-
isGreaterThan
-
valueOf
Parses a version string into a Version object.- Parameters:
version- the version string- Returns:
- the Version object
-