java.lang.Object
edu.ntnu.idata1002.prosjekt2021.model.Contact

public class Contact
extends java.lang.Object
Represents a contact person. Holds the contacts name and phonenumber.
  • Constructor Summary

    Constructors
    Constructor Description
    Contact​(java.lang.String fullName, java.lang.String phonenumber)
    Creates an instance of a Contact.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getFullName()
    Returns this contact persons full name.
    java.lang.String getPhonenumber()
    Returns this contact persons phonenumber.
    void setFullName​(java.lang.String fullName)
    Sets this contact persons full name.
    void setPhonenumber​(java.lang.String phonenumber)
    Sets this contact persons phonenumber.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Contact

      public Contact​(java.lang.String fullName, java.lang.String phonenumber)
      Creates an instance of a Contact.
      Parameters:
      fullName - the contact persons full name.
      phonenumber - the contact persons phonenumber.
  • Method Details

    • getFullName

      public java.lang.String getFullName()
      Returns this contact persons full name.
      Returns:
      this contact persons full name.
    • setFullName

      public void setFullName​(java.lang.String fullName)
      Sets this contact persons full name.
      Parameters:
      fullName - the full name to be set to this contact person.
    • getPhonenumber

      public java.lang.String getPhonenumber()
      Returns this contact persons phonenumber.
      Returns:
      this contact persons phonenumber.
    • setPhonenumber

      public void setPhonenumber​(java.lang.String phonenumber)
      Sets this contact persons phonenumber.
      Parameters:
      phonenumber - phonenumber to be set to this contact person.