public static enum Age.Option extends Enum<Age.Option> implements Translatable
Enum Constant and Description |
---|
NEW_BUILDING
new building / Neubau
|
OLD_BUILDING
old building / Altbau
|
Modifier and Type | Method and Description |
---|---|
String |
getTranslation() |
String |
getTranslation(Locale locale) |
static Age.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Age.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Age.Option OLD_BUILDING
public static final Age.Option NEW_BUILDING
public static Age.Option[] values()
for (Age.Option c : Age.Option.values()) System.out.println(c);
public static Age.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.