Class SameTypePairComparator<T>
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.TypePairComparator<T,T>
-
- org.apache.flink.api.common.typeutils.SameTypePairComparator<T>
-
@Internal public class SameTypePairComparator<T> extends TypePairComparator<T,T>
-
-
Constructor Summary
Constructors Constructor Description SameTypePairComparator(TypeComparator<T> comp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareToReference(T candidate)booleanequalToReference(T candidate)Checks, whether the given candidate instance is equal to the reference instance, with respect to this comparator's equality definition.voidsetReference(T reference)Sets the reference for comparisons.
-
-
-
Constructor Detail
-
SameTypePairComparator
public SameTypePairComparator(TypeComparator<T> comp)
-
-
Method Detail
-
setReference
public void setReference(T reference)
Description copied from class:TypePairComparatorSets the reference for comparisons.- Specified by:
setReferencein classTypePairComparator<T,T>- Parameters:
reference- The reference instance.
-
equalToReference
public boolean equalToReference(T candidate)
Description copied from class:TypePairComparatorChecks, whether the given candidate instance is equal to the reference instance, with respect to this comparator's equality definition.- Specified by:
equalToReferencein classTypePairComparator<T,T>- Parameters:
candidate- The candidate to check.- Returns:
- True, if the candidate is equal to the reference, false otherwise.
-
compareToReference
public int compareToReference(T candidate)
- Specified by:
compareToReferencein classTypePairComparator<T,T>
-
-