Class Contact


  • public class Contact
    extends Object
    Contact
    • Constructor Detail

      • Contact

        public Contact()
    • Method Detail

      • getAddress

        public Address getAddress()
        Get address
        Returns:
        address
      • setAddress

        public void setAddress​(Address address)
        address
        Parameters:
        address -
      • getEmail

        public String getEmail()
        The e-mail address of the contact.
        Returns:
        email
      • setEmail

        public void setEmail​(String email)
        The e-mail address of the contact.
        Parameters:
        email -
      • fullPhoneNumber

        public Contact fullPhoneNumber​(String fullPhoneNumber)
      • getFullPhoneNumber

        public String getFullPhoneNumber()
        The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"
        Returns:
        fullPhoneNumber
      • setFullPhoneNumber

        public void setFullPhoneNumber​(String fullPhoneNumber)
        The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"
        Parameters:
        fullPhoneNumber -
      • getName

        public Name getName()
        Get name
        Returns:
        name
      • setName

        public void setName​(Name name)
        name
        Parameters:
        name -
      • getPersonalData

        public PersonalData getPersonalData()
        Get personalData
        Returns:
        personalData
      • setPersonalData

        public void setPersonalData​(PersonalData personalData)
        personalData
        Parameters:
        personalData -
      • getPhoneNumber

        public PhoneNumber getPhoneNumber()
        Get phoneNumber
        Returns:
        phoneNumber
      • setPhoneNumber

        public void setPhoneNumber​(PhoneNumber phoneNumber)
        phoneNumber
        Parameters:
        phoneNumber -
      • getWebAddress

        public String getWebAddress()
        The URL of the website of the contact.
        Returns:
        webAddress
      • setWebAddress

        public void setWebAddress​(String webAddress)
        The URL of the website of the contact.
        Parameters:
        webAddress -
      • equals

        public boolean equals​(Object o)
        Return true if this Contact object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Contact fromJson​(String jsonString)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Contact given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Contact
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Contact
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Contact to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException