package it.sieradzki.userscript_parser.metadata;

/**
 * Implementation of <a href="https://developer.mozilla.org/en/Toolkit_version_format">Toolkit version format</a>
 */
public class Version implements Comparable<Version> {

	private Part[] versionParts;

	public Version(String versionString) {
	}

	@Override
	public int compareTo(Version o) {
		return 0;
	}

	private static class Part implements Comparable<Part> {

		private Integer numberA;

		private String stringB;

		private Integer numberC;

		private String stringD;

		@Override
		public int compareTo(Part o) {
			return 0;
		}
	}
}

@@ -341,26 +341,302 @@
 on o) %7B%0A
+%0A
 %09%09
-return 0
+for (int i = 0; i %3C Math.min(versionParts.length, o.versionParts.length); i++) %7B%0A%0A%09%09%09int comparedPartResult = versionParts%5Bi%5D.compareTo(o.versionParts%5Bi%5D);%0A%09%09%09if (comparedPartResult != 0) %7B%0A%09%09%09%09return comparedPartResult;%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09return versionParts.length - o.versionParts.length
 ;%0A%09%7D%0A%0A%09p

Implement comparing two Version objects