public static enum Type.Option extends Enum<Type.Option> implements Translatable
Enum Constant and Description |
---|
CONSUMPTION
by consumption / nach Verbrauch
|
DEMAND
by demand / nach Bedarf
|
Modifier and Type | Method and Description |
---|---|
String |
getTranslation() |
String |
getTranslation(Locale locale) |
static Type.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type.Option DEMAND
public static final Type.Option CONSUMPTION
public static Type.Option[] values()
for (Type.Option c : Type.Option.values()) System.out.println(c);
public static Type.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.