T
- The type of the objects comparable with this comparator@FunctionalInterface public interface FeatureAwareComparator<T>
Modifier and Type | Method and Description |
---|---|
int |
compare(org.eclipse.emf.ecore.EStructuralFeature feature,
T leftValue,
T rightValue)
Compares two values of the given feature.
|
int compare(org.eclipse.emf.ecore.EStructuralFeature feature, T leftValue, T rightValue)
feature
- The EStructuralFeature
containing the valuesleftValue
- Left valuerightValue
- Right Value0
if the left value is equal to the right value;
a positive number if the left value is greater than the right value.
Thereby, null
input values are treated as bigger than any other non-null valueComparator.compare(Object, Object)
Copyright © 2020. All rights reserved.