org.dbunit.dataset.datatype
Class ToleratedDeltaMap.Precision
java.lang.Object
org.dbunit.dataset.datatype.ToleratedDeltaMap.Precision
- Enclosing class:
- ToleratedDeltaMap
public static class ToleratedDeltaMap.Precision
- extends java.lang.Object
Container for the tolerated delta of two values that are compared to each other.
- Since:
- 2.4.0
- Version:
- $Revision: 824 $ $Date: 2008-10-05 19:20:37 +0200 (dom, 05 ott 2008) $
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToleratedDeltaMap.Precision
public ToleratedDeltaMap.Precision(java.math.BigDecimal delta)
- Parameters:
delta - The allowed/tolerated difference
ToleratedDeltaMap.Precision
public ToleratedDeltaMap.Precision(java.math.BigDecimal delta,
boolean percentage)
- Parameters:
delta - The allowed/tolerated differencepercentage - Whether or not the given delta should be
interpreted as percentage or not during the comparison
isPercentage
public boolean isPercentage()
getDelta
public java.math.BigDecimal getDelta()
Copyright © 2002-2010. All Rights Reserved.