public enum TypeComparator extends Enum<TypeComparator> implements Comparator<Class<?>>
Classs.| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Class<?> left,
Class<?> right) |
static TypeComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final TypeComparator INSTANCE
public static TypeComparator[] values()
for (TypeComparator c : TypeComparator.values()) System.out.println(c);
public static TypeComparator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int compare(@MaybeNull Class<?> left, @MaybeNull Class<?> right)
compare in interface Comparator<Class<?>>Copyright © 2014–2026. All rights reserved.