Class DTVersion

java.lang.Object
io.github.webbasedwodt.model.dtd.DTVersion

public final class DTVersion extends Object
Value object that implement the version of the DT, following the semantic versioning rationale.
  • Constructor Details

    • DTVersion

      public DTVersion(int major, int minor, int patch)
      Default constructor.
      Parameters:
      major - the major version number.
      minor - the minor version number.
      patch - the patch version number.
  • Method Details

    • getMajor

      public int getMajor()
      Get major version number.
      Returns:
      the major version number.
    • getMinor

      public int getMinor()
      Get minor version number.
      Returns:
      the minor version number.
    • getPatch

      public int getPatch()
      Get patch version number.
      Returns:
      the patch version number.
    • toString

      public String toString()
      Overrides:
      toString in class Object