public enum SmokerState extends Enum<SmokerState>
| Enum Constant and Description |
|---|
NON_SMOKER |
OCCASIONAL_SMOKER |
SMOKER |
| Modifier and Type | Method and Description |
|---|---|
static SmokerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SmokerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmokerState SMOKER
public static final SmokerState OCCASIONAL_SMOKER
public static final SmokerState NON_SMOKER
public static SmokerState[] values()
for (SmokerState c : SmokerState.values()) System.out.println(c);
public static SmokerState 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 © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.