Enum Class的使用
com.luna.common.os.OperatingSystem
使用OperatingSystem的程序包
-
com.luna.common.os中OperatingSystem的使用
修饰符和类型方法说明OperatingSystem.getGroup()static OperatingSystemOperatingSystem.parseUserAgentLowercaseString(String agentString) static OperatingSystemOperatingSystem.parseUserAgentString(String agentString) Parses user agent string and returns the best match.static OperatingSystemOperatingSystem.parseUserAgentString(String agentString, List<OperatingSystem> operatingSystems) Parses the user agent string and returns the best match for the given operating systems.static OperatingSystemOperatingSystem.valueOf(short id) Returns the enum constant of this type with the specified id.static OperatingSystemReturns the enum constant of this class with the specified name.static OperatingSystem[]OperatingSystem.values()Returns an array containing the constants of this enum class, in the order they are declared.类型变量类型为OperatingSystem的com.luna.common.os中的方法参数修饰符和类型方法说明static OperatingSystemOperatingSystem.parseUserAgentString(String agentString, List<OperatingSystem> operatingSystems) Parses the user agent string and returns the best match for the given operating systems.