public static enum Broker.ResourceComparator.Mode extends Enum<Broker.ResourceComparator.Mode>
Enum Constant and Description |
---|
AVAILABLE
Compares available capacity (<= total capacity).
|
TOTAL
Compares total capacity.
|
UNUSED_AVAILABLE
Compares unused amount of available capacity
(e.g.
|
Modifier and Type | Method and Description |
---|---|
static Broker.ResourceComparator.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Broker.ResourceComparator.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Broker.ResourceComparator.Mode TOTAL
public static final Broker.ResourceComparator.Mode AVAILABLE
public static final Broker.ResourceComparator.Mode UNUSED_AVAILABLE
public static Broker.ResourceComparator.Mode[] values()
for (Broker.ResourceComparator.Mode c : Broker.ResourceComparator.Mode.values()) System.out.println(c);
public static Broker.ResourceComparator.Mode 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 null