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 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 (Sun, 05 Oct 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(BigDecimal delta)
- Parameters:
delta
- The allowed/tolerated difference
ToleratedDeltaMap.Precision
public ToleratedDeltaMap.Precision(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 BigDecimal getDelta()
Copyright © 2002-2012. All Rights Reserved.