Enum ECountry
- All Implemented Interfaces:
IHasID<String>,IHasDisplayText,Serializable,Comparable<ECountry>,java.lang.constant.Constable
Country enum.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ICommonsSet<Locale> getDisplayText(Locale aContentLocale) static ECountrygetFromIDOrNull(String sID) static ECountrygetFromISOCodeOrNull(String sISO) Try to find the country with the passed ISO code.getID()Get the unique ID of this object.booleanstatic ECountryReturns the enum constant of this type with the specified name.static ECountry[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.helger.commons.text.display.IHasDisplayText
getAsHasText
-
Enum Constant Details
-
AD
-
AE
-
AF
-
AG
-
AI
-
AL
-
AM
-
AN
-
AO
-
AQ
-
AR
-
AS
-
AT
-
AU_ACT
-
AU_NSW
-
AU_NT
-
AU_QLD
-
AU_SA
-
AU_TAS
-
AU_VIC
-
AU_WA
-
AU
-
AW
-
AX
-
AZ
-
BA_FBH
-
BA_RS
-
BA
-
BB
-
BD
-
BE
-
BF
-
BG
-
BH
-
BI
-
BJ
-
BM
-
BN
-
BO
-
BR
-
BS
-
BT
-
BV
-
BW
-
BY
-
BZ
-
CA_AB
-
CA_BC
-
CA_MB
-
CA_NB
-
CA_NL
-
CA_NS
-
CA_NT
-
CA_NU
-
CA_ON
-
CA_PE
-
CA_QC
-
CA_SK
-
CA_YT
-
CA
-
CC
-
CD
-
CF
-
CG
-
CH_AG
-
CH_AI
-
CH_AR
-
CH_BE
-
CH_BL
-
CH_BS
-
CH_FR
-
CH_GE
-
CH_GL
-
CH_GR
-
CH_JU
-
CH_LU
-
CH_NE
-
CH_NW
-
CH_OW
-
CH_SG
-
CH_SH
-
CH_SO
-
CH_SZ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details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getID
Description copied from interface:IHasIDGet the unique ID of this object. If the type isStringthan the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)! -
getISOCountryCode
- Returns:
- the ISO country code (the part before the first underscore). Always lowercase.
-
getDisplayText
- Specified by:
getDisplayTextin interfaceIHasDisplayText- Parameters:
aContentLocale- The locale to be used for resolving. May not benull.- Returns:
- The display text of the object in the given locale. May be
nullif the text could not be resolved in the passed locale.
-
isCountrySub
public boolean isCountrySub() -
getAsLocale
-
getFromIDOrNull
-
getFromISOCodeOrNull
Try to find the country with the passed ISO code. Country sub-codes are ignored in this method.- Parameters:
sISO- The ISO code to search. Case sensitivity does not matter. May benull.- Returns:
- The matching country or
nullif the ISO code was not resolved.
-
getCountryListAsLocales
- Returns:
- A non-
nullset of all contained country locales in this enumeration.
-