Package japicmp.versioning
Class SemanticVersion
- java.lang.Object
-
- japicmp.versioning.SemanticVersion
-
public class SemanticVersion extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SemanticVersion.ChangeType
-
Constructor Summary
Constructors Constructor Description SemanticVersion(int major, int minor, int patch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SemanticVersion.ChangeType>
computeChangeType(SemanticVersion version)
boolean
equals(java.lang.Object o)
int
getMajor()
int
getMinor()
int
getPatch()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
getPatch
public int getPatch()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
computeChangeType
public Optional<SemanticVersion.ChangeType> computeChangeType(SemanticVersion version)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-