Package spoon.reflect.visitor
Class DefaultImportComparator
java.lang.Object
spoon.reflect.visitor.DefaultImportComparator
- All Implemented Interfaces:
Comparator<CtImport>
Defines order of imports:
1) imports are ordered alphabetically
2) static imports are last
-
Constructor Summary
-
Method Summary
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 Details
-
DefaultImportComparator
public DefaultImportComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<CtImport>
-