code: public int compare(MajorMinorVersion otherVersion) {
          int result = this.major - otherVersion.major;
          if (result == 0) {
              result = this.minor - otherVersion.minor;
          }
          return result;
      }
docs: Compares two versions by major then minor number.
  
  @param otherVersion another {@link MajorMinorVersion}.
  @return <code>-1</code> if this version is lower than
  <code>otherVersion</code>, <code>0</code> if they are the same version,
  and <code>1</code> if this version is higher than
  <code>otherVersion</code>.