MeCard
Inheritance: java.lang.Object
public final class MeCard
Represents MeCard standard contact details.
Constructors
Constructor | Description |
---|---|
MeCard() | Creates MeCard instance with default values. |
Methods
Method | Description |
---|---|
getName() | Gets or sets contact Name. |
setName(String value) | Gets or sets contact Name. |
getNickname() | Gets or sets contact Nickname. |
setNickname(String value) | Gets or sets contact Nickname. |
getPhone() | Gets or sets phone number. |
setPhone(String value) | Gets or sets phone number. |
getAltPhone() | Gets or sets alternative phone number. |
setAltPhone(String value) | Gets or sets alternative phone number. |
getReading() | Gets or sets reading of name. |
setReading(String value) | Gets or sets reading of name. |
getEmail() | Gets or sets contact email. |
setEmail(String value) | Gets or sets contact email. |
getNote() | Gets or sets Note (Company) of contact. |
setNote(String value) | Gets or sets Note (Company) of contact. |
getUrl() | Gets or sets URL. |
setUrl(String value) | Gets or sets URL. |
getAddress() | Gets or sets Home Address properties. |
setAddress(Address value) | Gets or sets Home Address properties. |
getBirthDay() | Gets or sets contact birthday. |
setBirthDay(Date value) | Gets or sets contact birthday. |
equals(Object source) | Overwrites Equals method to compare MeCard properties |
hashCode() | Overrides GetHashCode method |
MeCard()
public MeCard()
Creates MeCard instance with default values.
getName()
public final String getName()
Gets or sets contact Name.
Returns: java.lang.String
setName(String value)
public final void setName(String value)
Gets or sets contact Name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getNickname()
public final String getNickname()
Gets or sets contact Nickname.
Returns: java.lang.String
setNickname(String value)
public final void setNickname(String value)
Gets or sets contact Nickname.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getPhone()
public final String getPhone()
Gets or sets phone number.
Returns: java.lang.String
setPhone(String value)
public final void setPhone(String value)
Gets or sets phone number.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getAltPhone()
public final String getAltPhone()
Gets or sets alternative phone number.
Returns: java.lang.String
setAltPhone(String value)
public final void setAltPhone(String value)
Gets or sets alternative phone number.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getReading()
public final String getReading()
Gets or sets reading of name.
Returns: java.lang.String
setReading(String value)
public final void setReading(String value)
Gets or sets reading of name.
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 |
getNote()
public final String getNote()
Gets or sets Note (Company) of contact.
Returns: java.lang.String
setNote(String value)
public final void setNote(String value)
Gets or sets Note (Company) of contact.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getUrl()
public final String getUrl()
Gets or sets URL.
Returns: java.lang.String
setUrl(String value)
public final void setUrl(String value)
Gets or sets URL.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getAddress()
public final Address getAddress()
Gets or sets Home Address properties. This property is not initialized by default.
Returns: Address
setAddress(Address value)
public final void setAddress(Address value)
Gets or sets Home Address properties. This property is not initialized by default.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Address |
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 MeCard properties
Parameters:
Parameter | Type | Description |
---|---|---|
source | java.lang.Object | MeCard object to compare with. |
Returns: boolean - Returns true if passed MeCard object has same type and all its properties are equal to this instance properties.
hashCode()
public int hashCode()
Overrides GetHashCode method
Returns: int - MeCard hash code