public enum OsType extends Enum<OsType>
| Enum Constant and Description |
|---|
OS_2 |
OS_400 |
OS_AIX |
OS_DARWIN |
OS_FREE_BSD |
OS_HP_UX |
OS_IRIX |
OS_LINUX |
OS_MIPS |
OS_NET_BSD |
OS_OPEN_BSD |
OS_SOLARIS |
OS_SUN |
OS_UNKNOWN |
OS_WINDOWS |
OS_ZOS |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getPrefix() |
boolean |
isUnix() |
static OsType |
of(String osName) |
static String |
osCase(String upperCase,
int from) |
String |
toString() |
static OsType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsType OS_LINUX
public static final OsType OS_DARWIN
public static final OsType OS_WINDOWS
public static final OsType OS_AIX
public static final OsType OS_IRIX
public static final OsType OS_HP_UX
public static final OsType OS_400
public static final OsType OS_FREE_BSD
public static final OsType OS_OPEN_BSD
public static final OsType OS_NET_BSD
public static final OsType OS_2
public static final OsType OS_SOLARIS
public static final OsType OS_SUN
public static final OsType OS_MIPS
public static final OsType OS_ZOS
public static final OsType OS_UNKNOWN
public static OsType[] values()
for (OsType c : OsType.values()) System.out.println(c);
public static OsType 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 nullpublic String[] getPrefix()
public boolean isUnix()
Copyright © 2022. All rights reserved.