Address

Inheritance: java.lang.Object

public class Address

Represents Address of VCard contact details.

Constructors

Constructor Description
Address()

Methods

Method Description
getStreet() Get or set address street.
setStreet(String value) Get or set address street.
getCity() Get or set address city.
setCity(String value) Get or set address city.
getState() Get or set address state.
setState(String value) Get or set address state.
getZIP() Get or set address ZIP.
setZIP(String value) Get or set address ZIP.
getCountry() Get or set address country.
setCountry(String value) Get or set address country.
equals(Object source) Overwrites Equals method to compare Address properties
hashCode() Overrides GetHashCode method

Address()

public Address()

getStreet()

public final String getStreet()

Get or set address street.

Returns: java.lang.String

setStreet(String value)

public final void setStreet(String value)

Get or set address street.

Parameters:

Parameter Type Description
value java.lang.String

getCity()

public final String getCity()

Get or set address city.

Returns: java.lang.String

setCity(String value)

public final void setCity(String value)

Get or set address city.

Parameters:

Parameter Type Description
value java.lang.String

getState()

public final String getState()

Get or set address state.

Returns: java.lang.String

setState(String value)

public final void setState(String value)

Get or set address state.

Parameters:

Parameter Type Description
value java.lang.String

getZIP()

public final String getZIP()

Get or set address ZIP.

Returns: java.lang.String

setZIP(String value)

public final void setZIP(String value)

Get or set address ZIP.

Parameters:

Parameter Type Description
value java.lang.String

getCountry()

public final String getCountry()

Get or set address country.

Returns: java.lang.String

setCountry(String value)

public final void setCountry(String value)

Get or set address country.

Parameters:

Parameter Type Description
value java.lang.String

equals(Object source)

public boolean equals(Object source)

Overwrites Equals method to compare Address properties

Parameters:

Parameter Type Description
source java.lang.Object Address object to compare with.

Returns: boolean - Returns true if passed address object has same type and all its properties are equal to this instance properties.

hashCode()

public int hashCode()

Overrides GetHashCode method

Returns: int - Email hash code