public enum OperatingSystem extends Enum<OperatingSystem>
This class is Thread-Safe.
Enum Constant and Description |
---|
MAC
Mac.
|
SOLARIS
Sun solaris.
|
UNIX
Unix family.
|
UNKNOWN
Unknown system.
|
WINDOWS
Window family.
|
Modifier and Type | Method and Description |
---|---|
static OperatingSystem |
find(String os)
Find the current system.
|
static OperatingSystem |
getOperatingSystem()
Get operating system name.
|
static OperatingSystem |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperatingSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperatingSystem WINDOWS
public static final OperatingSystem UNIX
public static final OperatingSystem MAC
public static final OperatingSystem SOLARIS
public static final OperatingSystem UNKNOWN
public static OperatingSystem[] values()
for (OperatingSystem c : OperatingSystem.values()) System.out.println(c);
public static OperatingSystem 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 static OperatingSystem find(String os)
os
- The system short name (usually win
or mac
or nux
or
sunos
...).public static OperatingSystem getOperatingSystem()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.