public enum DeviceType extends Enum<DeviceType>
org.springframework.mobile.device.DeviceType| 枚举常量和说明 |
|---|
MOBILE
Represents a mobile device, such as an iPhone
|
NORMAL
Represents a normal device. i.e. a browser on a desktop or laptop computer
|
TABLET
Represents a tablet device, such as an iPad
|
public static final DeviceType NORMAL
public static final DeviceType MOBILE
public static final DeviceType TABLET
public static DeviceType[] values()
for (DeviceType c : DeviceType.values()) System.out.println(c);
public static DeviceType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2023. All rights reserved.