public enum SupportedOs extends Enum<SupportedOs>
Approvals-Java can be executed from all kind of environments, which also means all kind of OS (at least Windows, Linux, Mac OSX).
That means some operations will have to be handled in different ways depending on which Operating System it is executed on.
| Modifier and Type | Field and Description |
|---|---|
boolean |
active |
| Modifier and Type | Method and Description |
|---|---|
static Optional<Reporter> |
osDefaultReporter()
Identifies the current OS and the associated
Reporter. |
static SupportedOs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportedOs[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedOs WINDOWS
public static final SupportedOs MACOS
public static final SupportedOs LINUX
public static SupportedOs[] values()
for (SupportedOs c : SupportedOs.values()) System.out.println(c);
public static SupportedOs 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 nullCopyright © 2018–2019 Write Them First!. All rights reserved.