public class FloatingPointTolerantDifferenceListener extends TextDifferenceListenerBase
This implementation uses an absolute tolerance value value for all numbers encountered, calculating a difference relative to one of the numbers compared might be more appropriate in general.
RETURN_ACCEPT_DIFFERENCE, RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL, RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR, RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT
Constructor and Description |
---|
FloatingPointTolerantDifferenceListener(DifferenceListener delegateTo,
double tolerance) |
Modifier and Type | Method and Description |
---|---|
protected int |
textualDifference(Difference d)
Delegates to the nested DifferenceListener.
|
attributeDifference, cdataDifference, commentDifference, differenceFound, skippedComparison, textDifference
public FloatingPointTolerantDifferenceListener(DifferenceListener delegateTo, double tolerance)
protected int textualDifference(Difference d)
TextDifferenceListenerBase
textualDifference
in class TextDifferenceListenerBase