code: @Override
      public int compareTo(final AbstractAttr<String> otherObj) {
          if (otherObj instanceof AttrVersion) {
              AttrVersion other = (AttrVersion) otherObj;
              if (major < other.major) {
                  return -1;
              } else if (major > other.major) {
                  return 1;
              } else if (minor < other.minor) {
                  return -1;
              } else if (minor > other.minor) {
                  return 1;
              } else {
                  return 0;
              }
          } else {
              return 0;
          }
      }
docs: {@inheritDoc}
  
  @param otherObj object to compare to
  @return -1, 0, or 1