Package org.cyclos.model.users.addresses
Enum AddressQueryField
- java.lang.Object
-
- java.lang.Enum<AddressQueryField>
-
- org.cyclos.model.users.addresses.AddressQueryField
-
- All Implemented Interfaces:
Serializable,Comparable<AddressQueryField>,HasMessageKey
public enum AddressQueryField extends Enum<AddressQueryField> implements HasMessageKey
Possible fields used to filter users by address
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddressQueryFieldgetByInternalName(String internalName)MessageKeygetMessageKey()StringinternalName()static AddressQueryFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static AddressQueryField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDRESS
public static final AddressQueryField ADDRESS
-
NEIGHBORHOOD
public static final AddressQueryField NEIGHBORHOOD
-
PO_BOX
public static final AddressQueryField PO_BOX
-
ZIP
public static final AddressQueryField ZIP
-
CITY
public static final AddressQueryField CITY
-
REGION
public static final AddressQueryField REGION
-
COUNTRY
public static final AddressQueryField COUNTRY
-
-
Method Detail
-
values
public static AddressQueryField[] 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 (AddressQueryField c : AddressQueryField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressQueryField 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
-
getByInternalName
public static AddressQueryField getByInternalName(String internalName)
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
internalName
public String internalName()
-
-