public enum DeviceType extends Enum<DeviceType>
public static final DeviceType Android
public static final DeviceType IOS
public static final DeviceType WinPhone
public static DeviceType[] values()
for (DeviceType c : DeviceType.values()) System.out.println(c);
public static DeviceType valueOf(String name)
name - 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException如果参数为空值, - 则抛出 NullPointerExceptionpublic String value()
Copyright © 2014. All Rights Reserved.