Interface EditComparator<T>

    • Method Detail

      • compare

        EditStep<T> compare​(T from,
                            T to)
        Compares two sequence elements, and evaluates the distance between them.
        Parameters:
        from - The element from the source sequence, which may be null,
        to - The element from the destination sequence, which may be null.
        Returns:
        An edit step between the two elements. EditStep.getFrom() is set to from, EditStep.getTo() is set to to, EditStep.getStepDistance() is set to the computed edit distance between these two elements, and EditStep.getOperation() is set to either EditStep.StepOperation.NONE or EditStep.StepOperation.CHANGE.