Class Versions

java.lang.Object
io.mokamint.node.Versions

public abstract class Versions extends Object
Providers of versions.
  • Method Details

    • of

      public static Version of(int major, int minor, int patch)
      Yields a version object with the given components.
      Parameters:
      major - the major version component
      minor - the minor version component
      patch - the patch version component
      Returns:
      the version object
    • current

      public static Version current() throws IOException
      Yields a version object, corresponding to the version of Mokamint as reported the pom.xml file of the parent project.
      Returns:
      the version object
      Throws:
      IOException - if the information in the pom.xml file cannot be accessed