public static enum OsInfo.OS extends Enum<OsInfo.OS>
Modifier and Type | Method and Description |
---|---|
Set<String> |
getIllegalNames() |
boolean |
isCaseInsensitive() |
static OsInfo.OS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OsInfo.OS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsInfo.OS WINDOWS
public static final OsInfo.OS OSX
public static final OsInfo.OS OTHER
public static OsInfo.OS[] values()
for (OsInfo.OS c : OsInfo.OS.values()) System.out.println(c);
public static OsInfo.OS 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 boolean isCaseInsensitive()
Copyright © 2011-2021. All Rights Reserved.