Class PolarisCliResponseVersion
- java.lang.Object
-
- com.synopsys.integration.polaris.common.cli.PolarisCliResponseVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PolarisCliResponseVersion>
public class PolarisCliResponseVersion extends java.lang.Object implements java.lang.Comparable<PolarisCliResponseVersion>, java.io.Serializable
An abstract representation of the Polaris CLI's cli-scan.json version number. Conventional version numbers, as well as current and past codenames are all valid and comparable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolarisCliResponseVersion(int major, int minor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PolarisCliResponseVersion o)
boolean
equals(java.lang.Object o)
int
getMajor()
int
getMinor()
int
hashCode()
static java.util.Optional<PolarisCliResponseVersion>
parse(java.lang.String s)
java.lang.String
toString()
-
-
-
Method Detail
-
parse
public static java.util.Optional<PolarisCliResponseVersion> parse(java.lang.String s)
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(PolarisCliResponseVersion o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PolarisCliResponseVersion>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-