Package com.streambase.sb.unittest
Class FieldBasedTupleComparator.TupleCompareFunctor
java.lang.Object
com.streambase.sb.unittest.FieldBasedTupleComparator.CompareFunctor
com.streambase.sb.unittest.FieldBasedTupleComparator.TupleCompareFunctor
- All Implemented Interfaces:
com.streambase.sb.DataType.Registry.Functor
- Enclosing class:
- FieldBasedTupleComparator
public static class FieldBasedTupleComparator.TupleCompareFunctor
extends FieldBasedTupleComparator.CompareFunctor
Tuple compare functor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compareImpl
(TupleComparator comparator, CompleteDataType cdt, Object expected, Object actual) Compare two values expected and actual, usingcomparator
for recursion as necessary.Methods inherited from class com.streambase.sb.unittest.FieldBasedTupleComparator.CompareFunctor
compare
-
Constructor Details
-
TupleCompareFunctor
public TupleCompareFunctor()
-
-
Method Details
-
compareImpl
public boolean compareImpl(TupleComparator comparator, CompleteDataType cdt, Object expected, Object actual) throws StreamBaseException Description copied from class:FieldBasedTupleComparator.CompareFunctor
Compare two values expected and actual, usingcomparator
for recursion as necessary.- Specified by:
compareImpl
in classFieldBasedTupleComparator.CompareFunctor
- Parameters:
comparator
- recurse through this argument for parameterized types.cdt
- complete data typeexpected
- a non-null objectactual
- a non-null object- Returns:
- true if and only if the values are considered equal
- Throws:
StreamBaseException
- conmparison error
-