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 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 $

Constructor Summary
ToleratedDeltaMap.Precision(BigDecimal delta)
           
ToleratedDeltaMap.Precision(BigDecimal delta, boolean percentage)
           
 
Method Summary
 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(BigDecimal delta)
Parameters:
delta - The allowed/tolerated difference

ToleratedDeltaMap.Precision

public ToleratedDeltaMap.Precision(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 BigDecimal getDelta()


Copyright © 2002-2012. All Rights Reserved.