| Enum Constant and Description |
|---|
ANY
Display on both desktop and mobile
|
DESKTOP
Display only on desktop
|
| Modifier and Type | Method and Description |
|---|---|
static Device |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Device[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Device DESKTOP
public static final Device ANY
public static Device[] values()
for (Device c : Device.values()) System.out.println(c);
public static Device 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