+public class Version implements Comparable<Version> {
+
+ /** The version of the application. */
+ private static final Version VERSION = new Version(0, 99, 0);
+
+ /** The major level of the version. */
+ private final int major;
+
+ /** The minor level of the version. */
+ private final int minor;
+
+ /** The patch level of the version. */
+ private final int patch;
+
+ /**
+ * Creates a new version with the given major level and minor and patch
+ * levels set to <code>0</code>.
+ *
+ * @param major
+ * The major level of the version
+ */
+ public Version(int major) {
+ this(major, 0);
+ }