public enum MethodComparator extends Enum<MethodComparator> implements Comparator<Method>
Methods.| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Method left,
Method right) |
static MethodComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodComparator[] |
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 MethodComparator INSTANCE
public static MethodComparator[] values()
for (MethodComparator c : MethodComparator.values()) System.out.println(c);
public static MethodComparator 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(Method left, Method right)
compare in interface Comparator<Method>Copyright © 2014–2023. All rights reserved.