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