Package Models
Class Contact
java.lang.Object
Models.Contact
A class representing the Contact object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getEmail()
void
setContactId
(int contactId) void
setContactName
(String contactName) void
toString()
-
Constructor Details
-
Contact
Constructor method for the Contact object- Parameters:
contactId
- the contactId integer value to be set on the Contact objectcontactName
- the contactName string value to be set on the Contact objectemail
- the email string value to be set on the Contact object
-
-
Method Details
-
getContactId
public int getContactId()- Returns:
- the contactId integer value on the Contact object
-
getContactName
- Returns:
- the contactName string value on the Contact object
-
getEmail
- Returns:
- the email string value on the Contact object
-
setContactId
public void setContactId(int contactId) - Parameters:
contactId
- the contactId integer value to be set on the Contact object
-
setContactName
- Parameters:
contactName
- the contactName string value to be set on the Contact object
-
setEmail
- Parameters:
email
- the email string value to be set on the Contact object
-
toString
-