public static enum OsUtilities.OsFamily extends Enum<OsUtilities.OsFamily>
Enum Constant and Description |
---|
DARWIN
Operating system family for Mac (OS X) systems.
|
LINUX
Operating system family for linux-based systems.
|
UNKNOWN
Any other unknown operating system.
|
WINDOWS
Operating system family for windows-based systems (including 64 bit
windows).
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns a string representation of the operating system family.
|
static OsUtilities.OsFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OsUtilities.OsFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsUtilities.OsFamily LINUX
public static final OsUtilities.OsFamily WINDOWS
public static final OsUtilities.OsFamily DARWIN
public static final OsUtilities.OsFamily UNKNOWN
public static OsUtilities.OsFamily[] values()
for (OsUtilities.OsFamily c : OsUtilities.OsFamily.values()) System.out.println(c);
public static OsUtilities.OsFamily 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 getName()
null
in case of unknown families.Copyright © 2018 CoR-Lab. All rights reserved.