Class SemanticVersion
- java.lang.Object
-
- com.github.spotbugs.snom.internal.SemanticVersion
-
- All Implemented Interfaces:
java.lang.Comparable<SemanticVersion>
public final class SemanticVersion extends java.lang.Object implements java.lang.Comparable<SemanticVersion>
- See Also:
- spec
-
-
Constructor Summary
Constructors Constructor Description SemanticVersion(java.lang.String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SemanticVersion that)intgetMajor()intgetMinor()intgetPatch()java.lang.StringtoString()
-
-
-
Method Detail
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
getPatch
public int getPatch()
-
compareTo
public int compareTo(SemanticVersion that)
- Specified by:
compareToin interfacejava.lang.Comparable<SemanticVersion>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-