matches method

bool matches(
  1. RangeDigest other
)

Whether other summarises the same record set (same count and fingerprint).

Implementation

bool matches(RangeDigest other) {
  if (count != other.count) return false;
  for (var i = 0; i < fingerprint.length; i++) {
    if (fingerprint[i] != other.fingerprint[i]) return false;
  }
  return true;
}