Package io.cryostat.agent
Class VersionInfo.Semver
- java.lang.Object
-
- io.cryostat.agent.VersionInfo.Semver
-
- All Implemented Interfaces:
Comparable<VersionInfo.Semver>
- Enclosing class:
- VersionInfo
public static class VersionInfo.Semver extends Object implements Comparable<VersionInfo.Semver>
-
-
Field Summary
Fields Modifier and Type Field Description static VersionInfo.SemverUNKNOWNstatic PatternVERSION_PATTERN
-
Constructor Summary
Constructors Constructor Description Semver(int major, int minor, int patch)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(VersionInfo.Semver o)booleanequals(Object obj)static VersionInfo.SemverfromString(String in)intgetMajor()intgetMinor()intgetPatch()inthashCode()StringtoString()
-
-
-
Field Detail
-
VERSION_PATTERN
public static final Pattern VERSION_PATTERN
-
UNKNOWN
public static final VersionInfo.Semver UNKNOWN
-
-
Method Detail
-
fromString
public static VersionInfo.Semver fromString(String in)
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
getPatch
public int getPatch()
-
compareTo
public int compareTo(VersionInfo.Semver o)
- Specified by:
compareToin interfaceComparable<VersionInfo.Semver>
-
-