For breaking an object to compare into a sequence of comparable entities.
It is used by RangeDifferencer to find longest sequences of
matching and non-matching ranges.
For example, to compare two text documents and find longest common sequences
of matching and non-matching lines, the implementation must break the document
into lines. getRangeCount would return the number of lines in the
document, and rangesEqual would compare a specified line given
with one in another IRangeComparator.
Clients should implement this interface; there is no standard implementation.
It is used by
RangeDifferencerto find longest sequences of matching and non-matching ranges.For example, to compare two text documents and find longest common sequences of matching and non-matching lines, the implementation must break the document into lines.
getRangeCountwould return the number of lines in the document, andrangesEqualwould compare a specified line given with one in anotherIRangeComparator.Clients should implement this interface; there is no standard implementation.