Class DefaultImportComparator

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

    public class DefaultImportComparator
    extends java.lang.Object
    implements java.util.Comparator<CtImport>
    Defines order of imports: 1) imports are ordered alphabetically 2) static imports are last
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(CtImport imp1, CtImport imp2)  
      • 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

      • DefaultImportComparator

        public DefaultImportComparator()
    • Method Detail

      • compare

        public int compare​(CtImport imp1,
                           CtImport imp2)
        Specified by:
        compare in interface java.util.Comparator<CtImport>