public enum OperationSystem extends Enum<OperationSystem>
| Enum Constant and Description |
|---|
LINUX
Linux系统
|
MAC
苹果电脑
|
UNKNOWN
未知操作系统
|
WINDOWS
微软操作系统
|
| Modifier and Type | Method and Description |
|---|---|
static OperationSystem |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationSystem MAC
public static final OperationSystem WINDOWS
public static final OperationSystem LINUX
public static final OperationSystem UNKNOWN
public static OperationSystem[] values()
for (OperationSystem c : OperationSystem.values()) System.out.println(c);
public static OperationSystem 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 nullCopyright © 2021 Shoothzj. All rights reserved.