Package org.dbunit.dataset.datatype
Class ToleratedDeltaMap.Precision
java.lang.Object
org.dbunit.dataset.datatype.ToleratedDeltaMap.Precision
- Enclosing class:
ToleratedDeltaMap
Container for the tolerated delta of two values that are compared to each
other.
- Since:
- 2.4.0
- Version:
- $Revision$ $Date$
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
-
Constructor Summary
ConstructorsConstructorDescriptionPrecision(BigDecimal delta) Creates a non-percentage precision with the given tolerated delta.Precision(BigDecimal delta, boolean percentage) Creates a precision with the given tolerated delta. -
Method Summary
Modifier and TypeMethodDescriptiongetDelta()Returns the allowed/tolerated difference.booleanReturns whether the delta is interpreted as a percentage.
-
Constructor Details
-
Precision
Creates a non-percentage precision with the given tolerated delta.- Parameters:
delta- The allowed/tolerated difference
-
Precision
Creates a precision with the given tolerated delta.- Parameters:
delta- The allowed/tolerated differencepercentage- Whether or not the givendeltashould be interpreted as percentage or not during the comparison
-
-
Method Details
-
isPercentage
public boolean isPercentage()Returns whether the delta is interpreted as a percentage.- Returns:
- whether the delta is interpreted as a percentage.
-
getDelta
Returns the allowed/tolerated difference.- Returns:
- the allowed/tolerated difference.
-