Package Models
Class Contact
java.lang.Object
Models.Contact
A class representing the Contact object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetEmail()voidsetContactId(int contactId) voidsetContactName(String contactName) voidtoString()
-
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
-