org.dbunit.dataset.datatype
Class ToleratedDeltaMap.ToleratedDelta
java.lang.Object
org.dbunit.dataset.datatype.ToleratedDeltaMap.ToleratedDelta
- Enclosing class:
- ToleratedDeltaMap
public static class ToleratedDeltaMap.ToleratedDelta
- extends java.lang.Object
Simple bean that holds the tolerance for floating point comparisons for a specific
database column.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ToleratedDeltaMap.ToleratedDelta
public ToleratedDeltaMap.ToleratedDelta(java.lang.String tableName,
java.lang.String columnName,
double toleratedDelta)
- Parameters:
tableName - The name of the tablecolumnName - The name of the column for which the tolerated delta should be appliedtoleratedDelta - The tolerated delta. For example 1E-5 means that the comparison must
match the first 5 decimal digits. All subsequent decimals are ignored.
ToleratedDeltaMap.ToleratedDelta
public ToleratedDeltaMap.ToleratedDelta(java.lang.String tableName,
java.lang.String columnName,
java.math.BigDecimal toleratedDelta)
- Parameters:
tableName - The name of the tablecolumnName - The name of the column for which the tolerated delta should be appliedtoleratedDelta - The tolerated delta. For example 1E-5 means that the comparison must
match the first 5 decimal digits. All subsequent decimals are ignored.
ToleratedDeltaMap.ToleratedDelta
public ToleratedDeltaMap.ToleratedDelta(java.lang.String tableName,
java.lang.String columnName,
java.math.BigDecimal toleratedDelta,
boolean isPercentage)
- Parameters:
tableName - The name of the tablecolumnName - The name of the column for which the tolerated delta should be appliedtoleratedDelta - The tolerated delta. For example 1E-5 means that the comparison must
match the first 5 decimal digits. All subsequent decimals are ignored.isPercentage - Whether or not the given toleratedDelta value is a percentage. See ToleratedDeltaMap.Precision for more.
ToleratedDeltaMap.ToleratedDelta
public ToleratedDeltaMap.ToleratedDelta(java.lang.String tableName,
java.lang.String columnName,
ToleratedDeltaMap.Precision toleratedDelta)
- Parameters:
tableName - The name of the tablecolumnName - The name of the column for which the tolerated delta should be appliedtoleratedDelta - The tolerated delta. For example 1E-5 means that the comparison must
match the first 5 decimal digits. All subsequent decimals are ignored.
getTableName
public java.lang.String getTableName()
getColumnName
public java.lang.String getColumnName()
getToleratedDelta
public ToleratedDeltaMap.Precision getToleratedDelta()
matches
public boolean matches(java.lang.String tableName,
java.lang.String columnName)
- Checks whether or not the
tableName and the columnName
match the ones of this object.
- Parameters:
tableName - columnName -
- Returns:
true if both given values match those of this object.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2002-2010. All Rights Reserved.