public enum ConstructorComparator extends Enum<ConstructorComparator> implements Comparator<Constructor<?>>
Constructor
s.Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Constructor<?> left,
Constructor<?> right) |
static ConstructorComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstructorComparator[] |
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, valueOf
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final ConstructorComparator INSTANCE
public static ConstructorComparator[] values()
for (ConstructorComparator c : ConstructorComparator.values()) System.out.println(c);
public static ConstructorComparator 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(Constructor<?> left, Constructor<?> right)
compare
in interface Comparator<Constructor<?>>
Copyright © 2014–2025. All rights reserved.