public enum WeightedComparator extends Enum<WeightedComparator> implements Comparator<Weighted>
Weighted objects.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Weighted left,
Weighted right) |
static WeightedComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeightedComparator[] |
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, valueOfequalspublic static final WeightedComparator INSTANCE
public static WeightedComparator[] values()
for (WeightedComparator c : WeightedComparator.values()) System.out.println(c);
public static WeightedComparator 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(Weighted left, Weighted right)
compare in interface Comparator<Weighted>Copyright © 2014 JBoss by Red Hat. All rights reserved.