Class FieldBasedTupleComparator.DoubleCompareFunctor

java.lang.Object
com.streambase.sb.unittest.FieldBasedTupleComparator.CompareFunctor
com.streambase.sb.unittest.FieldBasedTupleComparator.DoubleCompareFunctor
All Implemented Interfaces:
com.streambase.sb.DataType.Registry.Functor
Enclosing class:
FieldBasedTupleComparator

public static class FieldBasedTupleComparator.DoubleCompareFunctor extends FieldBasedTupleComparator.CompareFunctor
Compare double values using a ratio test and a tolerance.
  • Constructor Details

    • DoubleCompareFunctor

      public DoubleCompareFunctor()
      Constructor

      Uses Util.DEFAULT_DOUBLE_COMPARE_TOLERANCE for double tolerance

    • DoubleCompareFunctor

      public DoubleCompareFunctor(double tolerance)
      Constructor
      Parameters:
      tolerance - double tolerance value
  • Method Details