public static enum DisplayUtil.DeviceType extends java.lang.Enum<DisplayUtil.DeviceType>
| Enum Constant and Description |
|---|
PHABLET
When the device is a small tablet (phablet), e.g.
|
PHONE
When the device is a phone, e.g.
|
TABLET
When the device is a tablet, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static DisplayUtil.DeviceType |
fromValue(java.lang.String value)
Returns the device type, which corresponds to a specific value.
|
java.lang.String |
getValue()
Returns the value of the device type.
|
static DisplayUtil.DeviceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DisplayUtil.DeviceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisplayUtil.DeviceType PHONE
public static final DisplayUtil.DeviceType PHABLET
public static final DisplayUtil.DeviceType TABLET
public static DisplayUtil.DeviceType[] values()
for (DisplayUtil.DeviceType c : DisplayUtil.DeviceType.values()) System.out.println(c);
public static DisplayUtil.DeviceType 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 final java.lang.String getValue()
Stringpublic static DisplayUtil.DeviceType fromValue(java.lang.String value)
value - The value of the device type, which should be returned, as a StringDisplayUtil.DeviceType