@Override
  public int hashCode() {
    int h = hash;
    if (h == 0) {
      h = hash = Objects.hash(key, mode);
    }
    return h;
  }
An exclusive resource identified by a key with a lock mode that is used to
synchronize access to shared resources when executing nodes in parallel.

@since 2.0
spock-core/src/main/java/org/spockframework/runtime/model/parallel/ExclusiveResource.java