Class SemanticVersions
java.lang.Object
com.intershop.tool.architecture.versions.SemanticVersions
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetIsCompatibleVersion(SemanticVersion oldVersion, SemanticVersion newVersion, UpdateStrategy strategy) Verify compatibility of a new version with a given update strategystatic StringgetNewestVersion(UpdateStrategy allowedChanges, Collection<String> versions, String current)
-
Method Details
-
getNewestVersion
public static String getNewestVersion(UpdateStrategy allowedChanges, Collection<String> versions, String current) -
getIsCompatibleVersion
public static boolean getIsCompatibleVersion(SemanticVersion oldVersion, SemanticVersion newVersion, UpdateStrategy strategy) Verify compatibility of a new version with a given update strategy- Parameters:
oldVersion- Old versionnewVersion- New versionstrategy- Update strategy- Returns:
- true in case the new version is compatible (e.g. MINOR update requested 1.2.3 a minor update of 1.1.1)
-