public static enum NonSmoker.Option extends Enum<NonSmoker.Option> implements Translatable
Enum Constant and Description |
---|
INDIFFERENT
indifferent / egal
|
NO
no / nein
|
YES
yes / ja
|
Modifier and Type | Method and Description |
---|---|
String |
getTranslation() |
String |
getTranslation(Locale locale) |
static NonSmoker.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NonSmoker.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NonSmoker.Option YES
public static final NonSmoker.Option NO
public static final NonSmoker.Option INDIFFERENT
public static NonSmoker.Option[] values()
for (NonSmoker.Option c : NonSmoker.Option.values()) System.out.println(c);
public static NonSmoker.Option 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 String getTranslation()
getTranslation
in interface Translatable
public String getTranslation(Locale locale)
getTranslation
in interface Translatable
Copyright © 2019 OpenEstate. All rights reserved.