class MatchKey {

  private final int line;
  private final int column;
  private final String ruleId;
  private final String subId;   // not considered in equals
  private final String title;
  private final String coveredText;

  MatchKey(int line, int column, String ruleId, String title, String coveredText) {
    this.line = line;
    this.column = column;
    this.ruleId = DiffTools.getMasterId(ruleId);
    this.subId = DiffTools.getSubId(ruleId);
    this.title = title.trim();
    this.coveredText = Objects.requireNonNull(coveredText);
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    MatchKey matchKey = (MatchKey) o;
    return line == matchKey.line &&
      column == matchKey.column &&
      ruleId.equals(matchKey.ruleId) &&
      Objects.equals(title, matchKey.title) &&
      coveredText.equals(matchKey.coveredText);
  }

  @Override
  public int hashCode() {
    return Objects.hash(line, column, ruleId, title, coveredText);
  }

  @Override
  public String toString() {<FILL_FUNCTION_BODY>}
}

    return "MatchKey{" +
      "line=" + line +
      ", column=" + column +
      ", ruleId='" + ruleId + '\'' +
      //", (subId='" + subId + '\'' +
      ", title='" + title + '\'' +
      ", coveredText='" + coveredText + '\'' +
      '}';
  
<no_super_class>