public enum AddressParserEnum extends java.lang.Enum<AddressParserEnum>
Enum Constant and Description |
---|
US
Parser setup to handle standard US addresses.
|
Modifier and Type | Method and Description |
---|---|
Address |
parse(java.lang.String name)
Parses the text as an address and returns it as a
Address object |
abstract Address |
parse(java.lang.String name,
AddressParser.ParseHint... hints)
Parses the text as an address and returns it as a
Address object |
static AddressParserEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AddressParserEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddressParserEnum US
public static AddressParserEnum[] values()
for (AddressParserEnum c : AddressParserEnum.values()) System.out.println(c);
public static AddressParserEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable @RequiredVersion(value=1) public Address parse(@NotNull java.lang.String name)
Address
objectname
- The string representing the addressAddress
object that corresponds to the entered stringjava.lang.IllegalArgumentException
- If the address cannot be parsed@Nullable @RequiredVersion(value=1) public abstract Address parse(@NotNull java.lang.String name, @NotNull AddressParser.ParseHint... hints)
Address
objectname
- The string representing the addresshints
- A set of hints to use when parsing. These are not required but can increase the parse accuracyAddress
object that corresponds to the entered stringjava.lang.IllegalArgumentException
- If the address cannot be parsed