org.dbunit.dataset.datatype
Class ToleratedDeltaMap.Precision

java.lang.Object
  extended by 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 $

Constructor Summary
ToleratedDeltaMap.Precision(java.math.BigDecimal delta)
           
ToleratedDeltaMap.Precision(java.math.BigDecimal delta, boolean percentage)
           
 
Method Summary
 java.math.BigDecimal getDelta()
           
 boolean isPercentage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 difference
percentage - Whether or not the given delta should be interpreted as percentage or not during the comparison
Method Detail

isPercentage

public boolean isPercentage()

getDelta

public java.math.BigDecimal getDelta()


Copyright © 2002-2010. All Rights Reserved.