Enum StandardLanguage
-
- All Implemented Interfaces:
-
java.io.Serializable,pro.fessional.mirana.data.CodeEnum,pro.fessional.mirana.i18n.I18nAware,pro.fessional.wings.faceless.enums.ConstantEnum,pro.fessional.wings.faceless.enums.StandardI18nEnum,pro.fessional.wings.faceless.enums.StandardLanguageEnum
@Generated(value = "wings faceless codegen") public enum StandardLanguage implements StandardLanguageEnum
language + `_` + country, `_` delimited, `zh_CN`. For parsing, `zh-CN` is also supported.
- Since:
2023-09-01
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static String$SUPERpublic final static String$AR_AEpublic final static String$DE_DEpublic final static String$EN_USpublic final static String$ES_ESpublic final static String$FR_FRpublic final static String$IT_ITpublic final static String$JA_JPpublic final static String$KO_KRpublic final static String$RU_RUpublic final static String$TH_THpublic final static String$ZH_CNpublic final static String$ZH_HKpublic final static booleanuseIdAsKeypublic final intidpublic final Stringcodepublic final Stringhintpublic final Stringinfopublic final Stringukey
-
Method Summary
Modifier and Type Method Description StringgetType()LocaletoLocale()StringgetBase()StringgetKind()StringgetI18nCode()static StandardLanguagevalueOf(int id)static StandardLanguageidOf(Integer id, StandardLanguage elz)static StandardLanguagecodeOf(String code, StandardLanguage elz)static StandardLanguagenameOf(String name, StandardLanguage elz)static Array<StandardLanguage>values()Returns an array containing the constants of this enum type, in the order they're declared. static StandardLanguagevalueOf(String name)Returns the enum constant of this type with the specified name. intgetId()StringgetCode()StringgetHint()StringgetInfo()StringgetUkey()-
Methods inherited from class pro.fessional.wings.faceless.enums.ConstantEnum
getId, getInfo, getSuperId, isStandard, isSuper, sameSuper -
Methods inherited from class pro.fessional.wings.faceless.enums.StandardI18nEnum
getUkey -
Methods inherited from class pro.fessional.mirana.data.CodeEnum
getCode, getHint, getI18nHint -
Methods inherited from class pro.fessional.mirana.i18n.I18nAware
getI18nArgs, toI18nString, toI18nStringArgs -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getI18nCode
@NotNull() String getI18nCode()
-
valueOf
@Nullable() static StandardLanguage valueOf(int id)
-
idOf
@Contract(value = "_, !null -> !null") static StandardLanguage idOf(Integer id, StandardLanguage elz)
-
codeOf
@Contract(value = "_, !null -> !null") static StandardLanguage codeOf(String code, StandardLanguage elz)
-
nameOf
@Contract(value = "_, !null -> !null") static StandardLanguage nameOf(String name, StandardLanguage elz)
-
values
static Array<StandardLanguage> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static StandardLanguage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
getId
int getId()
-
-
-
-