public final class NumericTypeComparator extends Object implements Comparator<IType>
Comparator
is used to sort ITypes
based on the numerical priority.Constructor and Description |
---|
NumericTypeComparator(TypeHelper typeHelper)
Creates a new
NumericTypeComparator . |
public NumericTypeComparator(TypeHelper typeHelper)
NumericTypeComparator
.typeHelper
- The helper that gives access to the most common types
public int compare(IType type1, IType type2)
compare
in interface Comparator<IType>