+ public Version(int major) {
+ this(major, 0);
+ }
+
+ /**
+ * Creates a new version with the given major and minor level and the patch
+ * level set to <code>0</code>.
+ *
+ * @param major
+ * The major level of the version
+ * @param minor
+ * The minor level of the version
+ */
+ public Version(int major, int minor) {
+ this(major, minor, 0);
+ }
+
+ /**
+ * Creates a new version with the given major, minor, and patch level.
+ *
+ * @param major
+ * The major level of the version
+ * @param minor
+ * The minor level of the version
+ * @param patch
+ * The patch level of the version
+ */
+ public Version(int major, int minor, int patch) {
+ this.major = major;
+ this.minor = minor;
+ this.patch = patch;
+ }
+
+ /**
+ * Returns the version of the application.
+ *
+ * @return The version of the application
+ */
+ public static Version getVersion() {