public int hashCode() {
    int code = isPrivate() ? 0 : 1;

    if (params != null) {
      code ^= params.hashCode();
    }

    return code;
  }