public class RecordPairComparator extends TypePairComparator<Record,Record>
TypePairComparator interface for Pact Records. The equality is established on a set of
key fields. The indices of the key fields may be different on the reference and candidate side.| Constructor and Description |
|---|
RecordPairComparator(int[] keyFieldsReference,
int[] keyFieldsCandidate,
Class<? extends Key<?>>[] keyTypes) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareToReference(Record candidate) |
boolean |
equalToReference(Record candidate)
Checks, whether the given candidate instance is equal to the reference instance, with respect
to this comparator's equality definition.
|
void |
setReference(Record reference)
Sets the reference for comparisons.
|
public void setReference(Record reference)
TypePairComparatorsetReference in class TypePairComparator<Record,Record>reference - The reference instance.public boolean equalToReference(Record candidate)
TypePairComparatorequalToReference in class TypePairComparator<Record,Record>candidate - The candidate to check.public int compareToReference(Record candidate)
compareToReference in class TypePairComparator<Record,Record>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.