public enum OS extends Enum<OS>
| Enum Constant and Description |
|---|
AIX |
DIGITAL_UNIX |
FREEBSD |
HP_UX |
IRIX |
LINUX |
MAC_OS_X |
MPE_IX |
OS_390 |
OS2 |
OSF1 |
SOLARIS |
SUN_OS |
UNKNOWN |
WINDOWS |
| Modifier and Type | Method and Description |
|---|---|
String |
fileSeparator() |
static OS |
get() |
boolean |
isLinux() |
boolean |
isMacOsX() |
boolean |
isUnix() |
boolean |
isWindows() |
String |
lineSeparator() |
String |
pathSeparator() |
static OS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OS WINDOWS
public static final OS MAC_OS_X
public static final OS LINUX
public static final OS OS2
public static final OS HP_UX
public static final OS AIX
public static final OS IRIX
public static final OS SOLARIS
public static final OS SUN_OS
public static final OS MPE_IX
public static final OS OS_390
public static final OS FREEBSD
public static final OS DIGITAL_UNIX
public static final OS OSF1
public static final OS UNKNOWN
public static OS[] values()
for (OS c : OS.values()) System.out.println(c);
public static OS 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 boolean isWindows()
public boolean isMacOsX()
public boolean isLinux()
public boolean isUnix()
public String lineSeparator()
public String pathSeparator()
public String fileSeparator()
public static OS get()
Copyright © 2017. All Rights Reserved.