public static class PersistenceManager.ClassComparator extends Object implements Comparator<Class<?>>, Serializable
Constructor and Description |
---|
ClassComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Class<?> c1,
Class<?> c2)
|
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
public int compare(Class<?> c1, Class<?> c2)
Class
values in terms of specificity; the
more specific class is said to be "smaller" than the
more generic one hence the Object
class is the
"largest" possible class. When two classes are not
comparable (i.e. not assignable from each other) in either
direction a NotComparableException will be thrown. both input
objects should be Class values otherwise a
ClassCastException
will be thrown.compare
in interface Comparator<Class<?>>
Copyright © 2024 GATE. All rights reserved.