public enum PropertyComparator extends Enum<PropertyComparator> implements Comparator<Property>
Property instances.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Property p1,
Property p2)
Compares to
Property instances. |
static PropertyComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyComparator[] |
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 PropertyComparator INSTANCE
public static PropertyComparator[] values()
for (PropertyComparator c : PropertyComparator.values()) System.out.println(c);
public static PropertyComparator 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(Property p1, Property p2)
Property instances.compare in interface Comparator<Property>p1 - the first objectp2 - the second object.Comparator.compare(Object, Object)Copyright © 2008–2022 MojoHaus. All rights reserved.