public enum Gender extends Enum<Gender> implements Translatable
Modifier and Type | Method and Description |
---|---|
static Gender |
fromShortValue(String value) |
static Gender |
fromSymbol(String value) |
String |
getShortValue() |
String |
getSymbol() |
String |
getTranslation() |
String |
getTranslation(Locale locale) |
static Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
String |
write()
Deprecated.
|
String |
write(Locale locale)
Deprecated.
|
public static Gender[] values()
for (Gender c : Gender.values()) System.out.println(c);
public static Gender 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 getShortValue()
public String getSymbol()
public String getTranslation()
getTranslation
in interface Translatable
public String getTranslation(Locale locale)
getTranslation
in interface Translatable
@Deprecated public String write()
@Deprecated public String write(Locale locale)
Copyright © 2019 OpenEstate. All rights reserved.