Package org.dbunit.dataset.datatype
Class ToleratedDeltaMap
java.lang.Object
org.dbunit.dataset.datatype.ToleratedDeltaMap
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$ $Date$
- Author:
- gommma, Last changed by: $Author$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContainer for the tolerated delta of two values that are compared to each other.static classSimple bean that holds the tolerance for floating point comparisons for a specific database column. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new object to the map of tolerated deltasfindToleratedDelta(String tableName, String columnName) Lookup a tolerated delta object by tableName and ColumnName.
-
Constructor Details
-
ToleratedDeltaMap
public ToleratedDeltaMap()
-
-
Method Details
-
findToleratedDelta
Lookup a tolerated delta object by tableName and ColumnName.- Parameters:
tableName-columnName-- Returns:
- The object from the map or
nullif no such object was found
-
getToleratedDeltas
-
addToleratedDelta
Adds a new object to the map of tolerated deltas- Parameters:
delta- The object to be added to the map
-