public class Address extends AbstractBean implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
CITY
Property name of city
|
static String |
COUNTRY
Property name of country
|
static String |
STATE
Property name of state
|
static String |
STREET1
Property name of street1
|
static String |
STREET2
Property name of street2
|
static String |
ZIP_CODE
Property name of zipCode
|
DIRTY| Constructor and Description |
|---|
Address()
Constructor.
|
Address(String street1,
String city,
String zipCode,
Country country)
Constructor.
|
Address(String street1,
String city,
String zipCode,
String state,
Country country)
Constructor.
|
Address(String street1,
String street2,
String city,
String zipCode,
String state,
Country country)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCity()
Returns the
city. |
Country |
getCountry()
Returns the
country. |
String |
getState()
Returns the
state. |
String |
getStreet1()
Returns the
street1. |
String |
getStreet2()
Returns the
street2. |
String |
getZipCode()
Returns the
zipCode. |
int |
hashCode() |
void |
setCity(String city)
Sets the
city. |
void |
setCountry(Country country)
Sets the
country. |
void |
setState(String state)
Sets the
state. |
void |
setStreet1(String street1)
Sets the
street1. |
void |
setStreet2(String street2)
Sets the
street2. |
void |
setZipCode(String zipCode)
Sets the
zipCode. |
addPropertyChangeListener, addPropertyChangeListener, copyTo, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, get, getChanges, getOriginalValue, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, isCopyAllowed, isDirty, registerChange, removePropertyChangeListener, removePropertyChangeListener, reset, set, setDirty, toStringpublic static final String STREET1
public static final String STREET2
public static final String CITY
public static final String ZIP_CODE
public static final String STATE
public static final String COUNTRY
public Address()
public Address(String street1, String city, String zipCode, Country country)
street1 - streetcity - name of cityzipCode - ZIP code of citycountry - countrypublic Address(String street1, String city, String zipCode, String state, Country country)
street1 - street (1st line)city - name of cityzipCode - ZIP code of citystate - state of citycountry - countrypublic void setStreet1(String street1)
street1.street1 - the street1 to setpublic void setStreet2(String street2)
street2.street2 - the street2 to setpublic void setZipCode(String zipCode)
zipCode.zipCode - the zipCode to setpublic void setCountry(Country country)
country.country - the country to setCopyright © 2014. All rights reserved.