@Entity public class Contact extends Object
| Constructor and Description |
|---|
Contact()
Creates a new empty instance of
Contact. |
Contact(long contactId,
String contactEmail,
String contactWeb,
String contactPhone,
String contactTwitter,
String contactFacebook,
String contactInstagram)
Creates a new instance of
Contact. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
String |
getContactEmail()
Returns the email of the contact.
|
String |
getContactFacebook()
Returns the facebook account of the contact.
|
long |
getContactId()
Returns the id of the contact.
|
String |
getContactInstagram()
Returns the instagram account of the contact.
|
String |
getContactPhone()
Returns the phone of the contact.
|
String |
getContactTwitter()
Returns the twitter account of the contact.
|
String |
getContactWeb()
Returns the web of the contact.
|
int |
hashCode()
Returns the hascCode of the contact.
|
void |
setContactEmail(String contactEmail)
Sets the email of the contact.
|
void |
setContactFacebook(String contactFacebook)
Sets the facebook account of the contact.
|
void |
setContactId(long contactId)
Sets the id of the contact.
|
void |
setContactInstagram(String contactInstagram)
Sets the instagram account of the contact.
|
void |
setContactPhone(String contactPhone)
Sets the phone of the contact.
|
void |
setContactTwitter(String contactTwitter)
Sets the twitter account of the contact.
|
void |
setContactWeb(String contactWeb)
Sets the web of the contact.
|
public Contact()
Contact.public Contact(long contactId,
String contactEmail,
String contactWeb,
String contactPhone,
String contactTwitter,
String contactFacebook,
String contactInstagram)
Contact.contactId - the id of the contact. This parameter must be a non empty and
non null long .contactEmail - the email of the contact. This parameter must be a non empty and
valid email.contactWeb - the web url of the contact. This parameter must be a non empty string.contactPhone - the phone of the contact. This parameter must be a non empty and
non null and valid phone.contactTwitter - the twitter url of the contact. This parameter must be a non empty string.contactFacebook - the facebook url of the contact. This parameter must be a non empty string.contactInstagram - the instagram url of the contact. This parameter must be a non empty string.NullPointerException - if a null value is passed as the
value for any parameter.IllegalArgumentException - if value provided for any parameter is
not valid according to its description.public long getContactId()
public void setContactId(long contactId)
contactId - the id of the contact. This parameter must be a non empty
and non null long.public String getContactEmail()
public void setContactEmail(String contactEmail)
contactEmail - the new email of the contact. This parameter must be a non empty
string with a maximum length of 100 chars and a minimun length of 10 chars and be a valid email.IllegalArgumentException - if the length of the string passed is
not valid or the email is invalid.public String getContactWeb()
public void setContactWeb(String contactWeb)
contactWeb - the new web of the contact. This parameter must be a non empty
string with a maximum length of 100 chars and a minimun length of 10 chars.IllegalArgumentException - if the length of the string passed is
not valid.public String getContactPhone()
public void setContactPhone(String contactPhone)
contactPhone - the new phone of the contact. This parameter must be a non empty
and non null string and a valid phone.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public String getContactTwitter()
public void setContactTwitter(String contactTwitter)
contactTwitter - the new twitter account of the contact. This parameter must be a non empty
string with a maximum length of 100 chars and a minimun length of 10 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public String getContactFacebook()
public void setContactFacebook(String contactFacebook)
contactFacebook - the new facebook account of the contact. This parameter must be a non empty
string with a maximum length of 100 chars and a minimun length of 10 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public String getContactInstagram()
public void setContactInstagram(String contactInstagram)
contactInstagram - the new instagram account of the contact. This parameter must be a non empty
string with a maximum length of 100 chars and a minimun length of 10 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public int hashCode()
Copyright © 2017. All rights reserved.