public interface TupleComparator
TupleComparator
abstracts comparison of tuples.Modifier and Type | Method and Description |
---|---|
boolean |
compare(Tuple expected,
Tuple actual)
Compare two tuples.
|
boolean |
compareValues(CompleteDataType cdt,
java.lang.Object expected,
java.lang.Object actual)
Compare two values with
CompleteDataType cdt. |
java.lang.String |
formatForErrorMessage(Tuple t)
Convert the provided Tuple into a string appropriate for error messages.
|
boolean compare(Tuple expected, Tuple actual) throws StreamBaseException
expected
- The expected valueactual
- The actual valueStreamBaseException
boolean compareValues(CompleteDataType cdt, java.lang.Object expected, java.lang.Object actual) throws StreamBaseException
CompleteDataType
cdt.cdt
- The CompleteDataType
for the objects being comparedexpected
- The expected valueactual
- The actual valueStreamBaseException
java.lang.String formatForErrorMessage(Tuple t)
t
- The tuple to format