@SuppressWarnings("NullableProblems")
	@Override
	public int compareTo(VersionNumber rhs) {
		for (int i = 0; ; i++) {
			if (i == this.digits.length && i == rhs.digits.length) {
				return 0; // equals
			}
			if (i == this.digits.length) {
				return -1; // rhs is larger
			}
			if (i == rhs.digits.length) {
				return 1;
			}

			int r = this.digits[i] - rhs.digits[i];
			if (r != 0) {
				return r;
			}
		}
	}
Parses a string like "1.0.2" into the version number.

@param num parameter string
ngrinder-core/src/main/java/net/grinder/util/VersionNumber.java