Package rs.baselib.type
Class Address
java.lang.Object
rs.baselib.type.Address
- All Implemented Interfaces:
Serializable
A location address.
- Author:
- ralph
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Property name of citystatic final String
Property name of countrystatic final String
Property name of statestatic final String
Property name of street1static final String
Property name of street2static final String
Property name of zipCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCity()
Returns thecity
.Returns thecountry
.getState()
Returns thestate
.Returns thestreet1
.Returns thestreet2
.Returns thezipCode
.int
hashCode()
void
Sets thecity
.void
setCountry
(Country country) Sets thecountry
.void
Sets thestate
.void
setStreet1
(String street1) Sets thestreet1
.void
setStreet2
(String street2) Sets thestreet2
.void
setZipCode
(String zipCode) Sets thezipCode
.
-
Field Details
-
STREET1
Property name of street1- See Also:
-
STREET2
Property name of street2- See Also:
-
CITY
Property name of city- See Also:
-
ZIP_CODE
Property name of zipCode- See Also:
-
STATE
Property name of state- See Also:
-
COUNTRY
Property name of country- See Also:
-
-
Constructor Details
-
Address
public Address()Constructor. -
Address
Constructor.- Parameters:
street1
- streetcity
- name of cityzipCode
- ZIP code of citycountry
- country
-
Address
Constructor.- Parameters:
street1
- street (1st line)city
- name of cityzipCode
- ZIP code of citystate
- state of citycountry
- country
-
Address
public Address(String street1, String street2, String city, String zipCode, String state, Country country) Constructor.- Parameters:
street1
- street (1st line)street2
- street (2nd line)city
- name of cityzipCode
- ZIP code of citystate
- state of citycountry
- country
-
-
Method Details
-
getStreet1
Returns thestreet1
.- Returns:
- the street1
-
setStreet1
Sets thestreet1
.- Parameters:
street1
- the street1 to set
-
getStreet2
Returns thestreet2
.- Returns:
- the street2
-
setStreet2
Sets thestreet2
.- Parameters:
street2
- the street2 to set
-
getCity
Returns thecity
.- Returns:
- the city
-
setCity
Sets thecity
.- Parameters:
city
- the city to set
-
getZipCode
Returns thezipCode
.- Returns:
- the zipCode
-
setZipCode
Sets thezipCode
.- Parameters:
zipCode
- the zipCode to set
-
getState
Returns thestate
.- Returns:
- the state
-
setState
Sets thestate
.- Parameters:
state
- the state to set
-
getCountry
Returns thecountry
.- Returns:
- the country
-
setCountry
Sets thecountry
.- Parameters:
country
- the country to set
-
hashCode
public int hashCode() -
equals
-