Class FieldBasedTupleComparator

java.lang.Object
com.streambase.sb.unittest.FieldBasedTupleComparator
All Implemented Interfaces:
TupleComparator

public class FieldBasedTupleComparator extends Object implements TupleComparator
A TupleComparator that compares tuples in a naive field-by-field manner. Comparison of individual field types can be controlled using FieldBasedTupleComparator.CompareFunctors. A subset of the fields for a tuple can by explicitly specifying the field names.

DEFAULT_COMPARATOR provides a reasonable default comparison of tuples.

DEFAULT_COMPARE_REGISTRY provides a filled in registry of default FieldBasedTupleComparator.CompareFunctors.

Since:
6.6