public enum DetOs extends Enum<DetOs>
| Modifier and Type | Method and Description |
|---|---|
static DetOs |
getOpSys()
Returns a representation of the operating system currently running.
|
(package private) abstract boolean |
isThis()
Returns whether this is the operating system currently running.
|
static void |
main(String[] args) |
private static String |
osString()
Returns a string representation
of the operating system currently running
as given by property
os.name in lower case. |
static DetOs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DetOs[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DetOs Win
public static final DetOs Nix
public static final DetOs Mac
public static final DetOs Solaris
public static DetOs[] values()
for (DetOs c : DetOs.values()) System.out.println(c);
public static DetOs 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 nullabstract boolean isThis()
private static String osString()
os.name in lower case.System.getProperty(String)public static DetOs getOpSys()
IllegalStateException - if the operating system cannot be detected.public static void main(String[] args)
Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.