public enum HosOption extends Enum<HosOption> implements HasName
| Enum Constant and Description |
|---|
AUTO |
OFF |
ON |
UNKNOWN
Fallback when enumeration value is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getName() |
static HosOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HosOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HosOption UNKNOWN
public static final HosOption OFF
public static final HosOption ON
public static final HosOption AUTO
public static HosOption[] values()
for (HosOption c : HosOption.values()) System.out.println(c);
public static HosOption 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 int getCode()
Copyright © 2023. All rights reserved.