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$ $Date$
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
  • Constructor Details

    • Precision

      public Precision(BigDecimal delta)
      Parameters:
      delta - The allowed/tolerated difference
    • Precision

      public 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 Details

    • isPercentage

      public boolean isPercentage()
    • getDelta

      public BigDecimal getDelta()