code: public void matches(Record r1, Record r2, double confidence) {
      if (r1 != current) {
        // we've finished processing the previous record, so make the calls
        if (current != null)
          endRecord_();
        startRecord_(r1);
      }
  
      String id1 = getIdentity(r1);
      String id2 = getIdentity(r2);
      curlinks.add(new Link(id1, id2, LinkStatus.INFERRED, LinkKind.SAME,
                            confidence));
    }
docs: accordingly.