public enum OSType extends Enum<OSType>
NativeCalls using
JNA (NativeCallsJNAImpl).| Enum Constant and Description |
|---|
FREEBSD
Indicates a FreeBSD family OS.
|
GENERIC
Indicates an OS whose kind cannot be determined or that is not supported by
JNA.
|
GENERIC_POSIX
Indicates a generic POSIX complaint OS (at least to a reasonable degree).
|
LINUX
Indicates a Linux family OS.
|
MACOSX
Indicates a MacOSX family OS.
|
SOLARIS
Indicates a Solaris family OS.
|
WIN
Indicates a Microsoft Windows family OS.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWindows()
Indicates a Microsoft Windows family OS.
|
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 LINUX
public static final OSType SOLARIS
public static final OSType MACOSX
public static final OSType FREEBSD
public static final OSType GENERIC_POSIX
public static final OSType WIN
public static final OSType GENERIC
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 final boolean isWindows()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.