Class SemanticVersions

java.lang.Object
com.intershop.tool.architecture.versions.SemanticVersions

public class SemanticVersions extends Object
  • 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 version
      newVersion - New version
      strategy - 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)