- java.lang.Object
-
- java.lang.Enum<CountryCode.Format>
-
- io.rxmicro.validation.constraint.CountryCode.Format
-
- All Implemented Interfaces:
Serializable,Comparable<CountryCode.Format>
- Enclosing class:
- CountryCode
public static enum CountryCode.Format extends Enum<CountryCode.Format>
- Author:
- nedis
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ISO_3166_1_alpha2ISO_3166_1_alpha3ISO_3166_1_numeric
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()io.rxmicro.common.meta.ReadMoregetReadMore()StringgetType()static CountryCode.FormatvalueOf(String name)Returns the enum constant of this type with the specified name.static CountryCode.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISO_3166_1_alpha2
@ReadMore(caption="What is ISO 3166-1 alpha2?", link="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2") public static final CountryCode.Format ISO_3166_1_alpha2
-
ISO_3166_1_alpha3
@ReadMore(caption="What is ISO 3166-1 alpha3?", link="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3") public static final CountryCode.Format ISO_3166_1_alpha3
-
ISO_3166_1_numeric
@ReadMore(caption="What is ISO 3166-1 numeric?", link="https://en.wikipedia.org/wiki/ISO_3166-1_numeric") public static final CountryCode.Format ISO_3166_1_numeric
-
-
Method Detail
-
values
public static CountryCode.Format[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CountryCode.Format c : CountryCode.Format.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CountryCode.Format 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.)- 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
-
getType
public String getType()
-
getDescription
public String getDescription()
-
getReadMore
public io.rxmicro.common.meta.ReadMore getReadMore()
-
-