Class Eve.Version

java.lang.Object
org.ek9lang.cli.Eve.Version
Enclosing class:
Eve

static class Eve.Version extends Object
The version. Takes a version text for features or plain versions. Both with or without a build number. This then allows the developer to manipulate major, minor, patch and build numbers.
  • Constructor Details

    • Version

      Version()
  • Method Details

    • isInvalidVersionAddressPart

      static boolean isInvalidVersionAddressPart(String versionParam)
      True if version segment is not major, minor, patch or build.
    • withNoBuildNumber

      static Eve.Version withNoBuildNumber(String value)
      Parse the incoming - but expect no build number.
    • withNoFeatureNoBuildNumber

      static Eve.Version withNoFeatureNoBuildNumber(String value)
    • withFeatureNoBuildNumber

      static Eve.Version withFeatureNoBuildNumber(String value)
    • withBuildNumber

      static Eve.Version withBuildNumber(String value)
      Parse the incoming - but expect a build number.
    • major

      Integer major()
    • incrementMajor

      public void incrementMajor()
      Increments the major part of the version number.
    • minor

      Integer minor()
    • incrementMinor

      void incrementMinor()
      Increments the minor part of the version number.
    • patch

      Integer patch()
    • incrementPatch

      void incrementPatch()
      Increments the patch part of the version number.
    • feature

      String feature()
    • buildNumber

      Integer buildNumber()
    • incrementBuildNumber

      void incrementBuildNumber()
      Increments the build part of the version number.
    • toString

      public String toString()
      Overrides:
      toString in class Object