VCard

Inheritance: java.lang.Object

public class VCard

Represents VCard standard contact details.

Constructors

Constructor Description
VCard() Creates VCard instance with default values.

Methods

Method Description
getFirstName() Get or set contact First Name.
setFirstName(String value) Get or set contact First Name.
getMidddleName() Get or set contact Middle Name.
setMidddleName(String value) Get or set contact Middle Name.
getLastName() Get or set contact Last Name.
setLastName(String value) Get or set contact Last Name.
getInitials() Get or set contact initials.
setInitials(String value) Get or set contact initials.
getCompany() Get or set Company of contact.
setCompany(String value) Get or set Company of contact.
getJobTitle() Get or set contact Job Title.
setJobTitle(String value) Get or set contact Job Title.
getHomeAddress() Gets or sets Home Address properties.
setHomeAddress(Address value) Gets or sets Home Address properties.
getWorkAddress() Gets or sets Work Address properties.
setWorkAddress(Address value) Gets or sets Work Address properties.
getHomePhone() Gets or sets home phone number.
setHomePhone(String value) Gets or sets home phone number.
getWorkPhone() Gets or sets work phone number.
setWorkPhone(String value) Gets or sets work phone number.
getCellPhone() Gets or sets cellular phone number.
setCellPhone(String value) Gets or sets cellular phone number.
getEmail() Gets or sets contact email.
setEmail(String value) Gets or sets contact email.
getUrl() Gets or sets contact URL.
setUrl(String value) Gets or sets contact URL.
getBirthDay() Gets or sets contact birthday.
setBirthDay(Date value) Gets or sets contact birthday.
equals(Object source) Overwrites Equals method to compare VCard properties
hashCode() Overrides GetHashCode method

VCard()

public VCard()

Creates VCard instance with default values.

getFirstName()

public final String getFirstName()

Get or set contact First Name.

Returns: java.lang.String

setFirstName(String value)

public final void setFirstName(String value)

Get or set contact First Name.

Parameters:

Parameter Type Description
value java.lang.String

getMidddleName()

public final String getMidddleName()

Get or set contact Middle Name.

Returns: java.lang.String

setMidddleName(String value)

public final void setMidddleName(String value)

Get or set contact Middle Name.

Parameters:

Parameter Type Description
value java.lang.String

getLastName()

public final String getLastName()

Get or set contact Last Name.

Returns: java.lang.String

setLastName(String value)

public final void setLastName(String value)

Get or set contact Last Name.

Parameters:

Parameter Type Description
value java.lang.String

getInitials()

public final String getInitials()

Get or set contact initials.

Returns: java.lang.String

setInitials(String value)

public final void setInitials(String value)

Get or set contact initials.

Parameters:

Parameter Type Description
value java.lang.String

getCompany()

public final String getCompany()

Get or set Company of contact.

Returns: java.lang.String

setCompany(String value)

public final void setCompany(String value)

Get or set Company of contact.

Parameters:

Parameter Type Description
value java.lang.String

getJobTitle()

public final String getJobTitle()

Get or set contact Job Title.

Returns: java.lang.String

setJobTitle(String value)

public final void setJobTitle(String value)

Get or set contact Job Title.

Parameters:

Parameter Type Description
value java.lang.String

getHomeAddress()

public final Address getHomeAddress()

Gets or sets Home Address properties. This property is not initialized by default.

Returns: Address

setHomeAddress(Address value)

public final void setHomeAddress(Address value)

Gets or sets Home Address properties. This property is not initialized by default.

Parameters:

Parameter Type Description
value Address

getWorkAddress()

public final Address getWorkAddress()

Gets or sets Work Address properties. This property is not initialized by default.

Returns: Address

setWorkAddress(Address value)

public final void setWorkAddress(Address value)

Gets or sets Work Address properties. This property is not initialized by default.

Parameters:

Parameter Type Description
value Address

getHomePhone()

public final String getHomePhone()

Gets or sets home phone number.

Returns: java.lang.String

setHomePhone(String value)

public final void setHomePhone(String value)

Gets or sets home phone number.

Parameters:

Parameter Type Description
value java.lang.String

getWorkPhone()

public final String getWorkPhone()

Gets or sets work phone number.

Returns: java.lang.String

setWorkPhone(String value)

public final void setWorkPhone(String value)

Gets or sets work phone number.

Parameters:

Parameter Type Description
value java.lang.String

getCellPhone()

public final String getCellPhone()

Gets or sets cellular phone number.

Returns: java.lang.String

setCellPhone(String value)

public final void setCellPhone(String value)

Gets or sets cellular phone number.

Parameters:

Parameter Type Description
value java.lang.String

getEmail()

public final String getEmail()

Gets or sets contact email.

Returns: java.lang.String

setEmail(String value)

public final void setEmail(String value)

Gets or sets contact email.

Parameters:

Parameter Type Description
value java.lang.String

getUrl()

public final String getUrl()

Gets or sets contact URL.

Returns: java.lang.String

setUrl(String value)

public final void setUrl(String value)

Gets or sets contact URL.

Parameters:

Parameter Type Description
value java.lang.String

getBirthDay()

public final Date getBirthDay()

Gets or sets contact birthday.

Returns: java.util.Date

setBirthDay(Date value)

public final void setBirthDay(Date value)

Gets or sets contact birthday.

Parameters:

Parameter Type Description
value java.util.Date

equals(Object source)

public boolean equals(Object source)

Overwrites Equals method to compare VCard properties

Parameters:

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

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

hashCode()

public int hashCode()

Overrides GetHashCode method

Returns: int - VCard hash code