Abstract interface class for tolerances
Tolerances define a notion of fuzzy equality for a set of data
types and can be plugged in to the
'Within' name-value pair argument.
Classes that derive from the
class must provide a tolerance definition. Use the
to implement the tolerance definition. Classes that derive from the
also must provide a diagnostic for two compared values. The testing
framework uses the diagnostic when the compared values are outside
of the allowable tolerance. Use the
to implement this condition. Finally, classes that derive from the
must provide a means to determine which data types the tolerance supports.
Define the supported data types by implementing the
|getDiagnosticFor||Produce diagnostic for two values specified to be within tolerance|
|satisfiedBy||Determine whether two values are within tolerance|
|supports||Determine whether tolerance supports specified data type|
Value. To learn how value classes affect copy operations, see Copying Objects.