Class Utils.TypeComparator

  • All Implemented Interfaces:
    java.util.Comparator<Type>
    Enclosing class:
    Utils

    private static class Utils.TypeComparator
    extends java.lang.Object
    implements java.util.Comparator<Type>
    We want the list of types in alphabetical order. However, types are not comparable. We need a comparator for now.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TypeComparator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Type type1, Type 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

      • TypeComparator

        private TypeComparator()
    • Method Detail

      • compare

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