public static enum AppProperties.UNIT_CONFIG extends Enum<AppProperties.UNIT_CONFIG>
Modifier and Type | Method and Description |
---|---|
static AppProperties.UNIT_CONFIG |
fromString(String text) |
static AppProperties.UNIT_CONFIG |
get(int id) |
String |
getText() |
static AppProperties.UNIT_CONFIG |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AppProperties.UNIT_CONFIG[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AppProperties.UNIT_CONFIG METRIC
public static final AppProperties.UNIT_CONFIG IMPERIAL
public static AppProperties.UNIT_CONFIG[] values()
for (AppProperties.UNIT_CONFIG c : AppProperties.UNIT_CONFIG.values()) System.out.println(c);
public static AppProperties.UNIT_CONFIG 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 static AppProperties.UNIT_CONFIG get(int id)
public String getText()
public static AppProperties.UNIT_CONFIG fromString(String text)
Copyright © 2015–2019. All rights reserved.