@Internal public class GenericPairComparator<T1,T2> extends TypePairComparator<T1,T2> implements Serializable
| Constructor and Description |
|---|
GenericPairComparator(TypeComparator<T1> comparator1,
TypeComparator<T2> comparator2) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareToReference(T2 candidate) |
boolean |
equalToReference(T2 candidate)
Checks, whether the given candidate instance is equal to the reference instance, with respect
to this comparator's equality definition.
|
void |
setReference(T1 reference)
Sets the reference for comparisons.
|
public GenericPairComparator(TypeComparator<T1> comparator1, TypeComparator<T2> comparator2)
public void setReference(T1 reference)
TypePairComparatorsetReference in class TypePairComparator<T1,T2>reference - The reference instance.public boolean equalToReference(T2 candidate)
TypePairComparatorequalToReference in class TypePairComparator<T1,T2>candidate - The candidate to check.public int compareToReference(T2 candidate)
compareToReference in class TypePairComparator<T1,T2>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.