public static enum OS.Family extends Enum<OS.Family>
Enum Constant and Description |
---|
LINUX
Any Linux based operating system family.
|
MAC
The MacOS operating system family.
|
OTHER
Any other operating system family.
|
WINDOWS
The Windows operating system family.
|
Modifier and Type | Method and Description |
---|---|
OS |
getRepresentative() |
static OS.Family |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OS.Family[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OS.Family WINDOWS
public static final OS.Family MAC
public static final OS.Family LINUX
public static final OS.Family OTHER
public static OS.Family[] values()
for (OS.Family c : OS.Family.values()) System.out.println(c);
public static OS.Family 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 OS getRepresentative()
Copyright © 2021. All rights reserved.