Package com.sap.cds.reflect.impl
Class CdsVersion
java.lang.Object
com.sap.cds.reflect.impl.CdsVersion
- All Implemented Interfaces:
Comparable<CdsVersion>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
compareTo
(CdsVersion other) Compares the compiler versions based on the normalized version which is calculated as major*10^p*3 + minor*10^p*2 + micro*10^p + buildNumber, where p - power, is the max precision length of the version segment.boolean
int
hashCode()
int
major()
int
micro()
int
minor()
-
Constructor Details
-
CdsVersion
public CdsVersion(int major, int minor, int micro, int buildNumber)
-
-
Method Details
-
major
public int major() -
minor
public int minor() -
micro
public int micro() -
buildNumber
public int buildNumber() -
compareTo
Compares the compiler versions based on the normalized version which is calculated as major*10^p*3 + minor*10^p*2 + micro*10^p + buildNumber, where p - power, is the max precision length of the version segment.- Specified by:
compareTo
in interfaceComparable<CdsVersion>
- Parameters:
other
- the version to be compared- Returns:
- a negative integer, zero, or a positive integer as this version is less than, equal to, or greater than the specified version
-
equals
-
hashCode
public int hashCode()
-