java.lang.Object
com.pervasive.datarush.operators.assertion.ExactTolerance
- All Implemented Interfaces:
FloatingPointTolerance
Check equivalence based on an exact match. This leaves no room for error and
so should be used with that in mind.
-
Field Summary
Fields inherited from interface com.pervasive.datarush.operators.assertion.FloatingPointTolerance
EXACT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisWithinTolerance(double value1, double value2) Indicates whether the specified values are equal under the tolerance.booleanisWithinTolerance(float value1, float value2) Indicates whether the specified values are equal under the tolerance.booleanisWithinTolerance(BigDecimal value1, BigDecimal value2) Indicates whether the specified values are equal under the tolerance.
-
Constructor Details
-
ExactTolerance
public ExactTolerance()
-
-
Method Details
-
isWithinTolerance
Description copied from interface:FloatingPointToleranceIndicates whether the specified values are equal under the tolerance.- Specified by:
isWithinTolerancein interfaceFloatingPointTolerance- Parameters:
value1- the first value to comparevalue2- the second value to compare- Returns:
trueif the two values lie with the error bounds, otherwisefalse
-
isWithinTolerance
public boolean isWithinTolerance(double value1, double value2) Description copied from interface:FloatingPointToleranceIndicates whether the specified values are equal under the tolerance.- Specified by:
isWithinTolerancein interfaceFloatingPointTolerance- Parameters:
value1- the first value to comparevalue2- the second value to compare- Returns:
trueif the two values lie with the error bounds, otherwisefalse
-
isWithinTolerance
public boolean isWithinTolerance(float value1, float value2) Description copied from interface:FloatingPointToleranceIndicates whether the specified values are equal under the tolerance.- Specified by:
isWithinTolerancein interfaceFloatingPointTolerance- Parameters:
value1- the first value to comparevalue2- the second value to compare- Returns:
trueif the two values lie with the error bounds, otherwisefalse
-