Package io.github.webbasedwodt.model.dtd
Class DTVersion
java.lang.Object
io.github.webbasedwodt.model.dtd.DTVersion
Value object that implement the version of the DT, following the semantic versioning rationale.
-
Constructor Summary
-
Method Summary
-
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
-