Class NumericTypeComparator

  • All Implemented Interfaces:
    java.util.Comparator<IType>

    public final class NumericTypeComparator
    extends java.lang.Object
    implements java.util.Comparator<IType>
    This Comparator is used to sort ITypes based on the numerical priority.
    Version:
    2.5
    Author:
    Pascal Filion
    Since:
    2.3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(IType type1, IType type2)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • NumericTypeComparator

        public NumericTypeComparator​(TypeHelper typeHelper)
        Creates a new NumericTypeComparator.
        Parameters:
        typeHelper - The helper that gives access to the most common types
    • Method Detail

      • compare

        public int compare​(IType type1,
                           IType type2)
        Specified by:
        compare in interface java.util.Comparator<IType>