public enum Preference extends java.lang.Enum<Preference>
Capability
.Enum Constant and Description |
---|
NORMAL
Indicates that preference for a platform is neutral for a given
capability.
|
PREFER_OTHERS
Indicates that there should not be a preference for the platform for
a given capability.
|
PREFERRED
Indicates that the platform should be preferred for a given capability.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isPreferredOver(Preference other)
Returns whether this given preference is preferred over the given
other preference.
|
static Preference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Preference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Preference PREFERRED
public static final Preference NORMAL
public static final Preference PREFER_OTHERS
public static Preference[] values()
for (Preference c : Preference.values()) System.out.println(c);
public static Preference valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isPreferredOver(Preference other)
other
- the other preference