Package Models

Class Contact

java.lang.Object
Models.Contact

public class Contact extends Object
A class representing the Contact object
  • Constructor Details

    • Contact

      public Contact(int contactId, String contactName, String email)
      Constructor method for the Contact object
      Parameters:
      contactId - the contactId integer value to be set on the Contact object
      contactName - the contactName string value to be set on the Contact object
      email - 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

      public String getContactName()
      Returns:
      the contactName string value on the Contact object
    • getEmail

      public String 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

      public void setContactName(String contactName)
      Parameters:
      contactName - the contactName string value to be set on the Contact object
    • setEmail

      public void setEmail(String email)
      Parameters:
      email - the email string value to be set on the Contact object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Stringified contact details