|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.model.BaseObject
com.gisgraphy.model.Address
public class Address
This class is used to represent an address with address, city, province and postal-code information.
Constructor Summary | |
---|---|
Address()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
Overridden equals method for object comparison. |
String |
getAddress()
|
String |
getCity()
|
String |
getCountry()
|
String |
getPostalCode()
|
String |
getProvince()
|
int |
hashCode()
Overridden hashCode method - compares on address, city, province, country and postal code. |
void |
setAddress(String address)
|
void |
setCity(String city)
|
void |
setCountry(String country)
|
void |
setPostalCode(String postalCode)
|
void |
setProvince(String province)
|
String |
toString()
Returns a multi-line String with key=value pairs. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Address()
Method Detail |
---|
public String getAddress()
public String getCity()
public String getProvince()
public String getCountry()
public String getPostalCode()
public void setAddress(String address)
public void setCity(String city)
public void setCountry(String country)
public void setPostalCode(String postalCode)
public void setProvince(String province)
public boolean equals(Object o)
equals
in class BaseObject
o
- Object to compare
public int hashCode()
hashCode
in class BaseObject
public String toString()
toString
in class BaseObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |