Package mpern.sap.commerce.build.util
Class Version
java.lang.Object
mpern.sap.commerce.build.util.Version
- All Implemented Interfaces:
Comparable<Version>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Versionstatic final intstatic final Comparator<Version> -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanequalsIgnorePatch(Version version) intgetJdk()intgetMajor()intgetMinor()intgetPatch()intinthashCode()booleanstatic VersionparseVersion(String versionString) static VersionparseVersion(String versionString, Map<String, Integer> previewToPlatformPatch) toString()
-
Field Details
-
UNDEFINED_PART
public static final int UNDEFINED_PART- See Also:
-
UNDEFINED
-
VERSION_COMPARATOR
-
-
Method Details
-
parseVersion
-
parseVersion
-
withoutPatch
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-
equalsIgnorePatch
-
equals
-
hashCode
public int hashCode() -
toString
-
getMajor
public int getMajor() -
getMinor
public int getMinor() -
getRelease
public int getRelease() -
getPatch
public int getPatch() -
getJdk
public int getJdk() -
getDependencyVersion
-
isPreview
public boolean isPreview()
-