org.dbunit.dataset.datatype
Class ToleratedDeltaMap

java.lang.Object
  extended by org.dbunit.dataset.datatype.ToleratedDeltaMap

public class ToleratedDeltaMap
extends Object

Container that manages a map of ToleratedDeltaMap.ToleratedDelta objects to be used for numeric comparisons with an allowed deviation of two values

Since:
2.3.0
Version:
$Revision: 824 $ $Date: 2008-10-05 19:20:37 +0200 (Sun, 05 Oct 2008) $
Author:
gommma, Last changed by: $Author: gommma $

Nested Class Summary
static class ToleratedDeltaMap.Precision
          Container for the tolerated delta of two values that are compared to each other.
static class ToleratedDeltaMap.ToleratedDelta
          Simple bean that holds the tolerance for floating point comparisons for a specific database column.
 
Constructor Summary
ToleratedDeltaMap()
           
 
Method Summary
 void addToleratedDelta(ToleratedDeltaMap.ToleratedDelta delta)
          Adds a new object to the map of tolerated deltas
 ToleratedDeltaMap.ToleratedDelta findToleratedDelta(String tableName, String columnName)
          Lookup a tolerated delta object by tableName and ColumnName.
 Map getToleratedDeltas()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToleratedDeltaMap

public ToleratedDeltaMap()
Method Detail

findToleratedDelta

public ToleratedDeltaMap.ToleratedDelta findToleratedDelta(String tableName,
                                                           String columnName)
Lookup a tolerated delta object by tableName and ColumnName.

Parameters:
tableName -
columnName -
Returns:
The object from the map or null if no such object was found

getToleratedDeltas

public Map getToleratedDeltas()

addToleratedDelta

public void addToleratedDelta(ToleratedDeltaMap.ToleratedDelta delta)
Adds a new object to the map of tolerated deltas

Parameters:
delta - The object to be added to the map


Copyright © 2002-2012. All Rights Reserved.