Class FlowableVersion


  • public class FlowableVersion
    extends Object
    This class is used for auto-upgrade purposes. The idea is that instances of this class are put in a sequential order, and that the current version is determined from the ACT_GE_PROPERTY table. Since sometimes in the past, a version is ambiguous (eg. 5.12 : 5.12, 5.12.1, 5.12T) this class act as a wrapper with a smarter matches() method.
    Author:
    Joram Barrez
    • Field Detail

      • mainVersion

        protected String mainVersion
      • alternativeVersionStrings

        protected List<String> alternativeVersionStrings
    • Constructor Detail

      • FlowableVersion

        public FlowableVersion​(String mainVersion)
      • FlowableVersion

        public FlowableVersion​(String mainVersion,
                               List<String> alternativeVersionStrings)
    • Method Detail

      • getMainVersion

        public String getMainVersion()
      • matches

        public boolean matches​(String version)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object