public final class ClassNameComparator extends Object implements Comparator<AbstractJClass>
AbstractJClass
es in the order of their
names.Modifier and Type | Method and Description |
---|---|
int |
compare(AbstractJClass aObj1,
AbstractJClass aObj2)
Compare two JTypes by FQCN, giving sorting precedence to types that belong
to packages java and javax over all others.
|
static ClassNameComparator |
getInstance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
@Nonnull public static ClassNameComparator getInstance()
public int compare(@Nonnull AbstractJClass aObj1, @Nonnull AbstractJClass aObj2)
compare
in interface Comparator<AbstractJClass>
Copyright © 2013–2018 Philip Helger. All rights reserved.