public boolean equals(Object other) {
    return other instanceof VersionNumber && compareTo((VersionNumber) other) == 0;
  }
A version number with format major.minor.micro-qualifier.
spock-core/src/main/java/org/spockframework/util/VersionNumber.java