Class Phone

    • Constructor Detail

      • Phone

        public Phone()
    • Method Detail

      • getCountryCode

        public String getCountryCode()
        The country calling code that acts as a prefix to the main telephone number.
        Returns:
        The country calling code that acts as a prefix to the main telephone number.
      • getPhoneNumber

        public String getPhoneNumber()
        The telephone number, including the area code.
        Returns:
        The telephone number, including the area code.
      • getExtension

        public String getExtension()
        The internal extension for this phone.
        Returns:
        The internal extension for this phone.
      • setCountryCode

        public void setCountryCode​(String countryCode)
        The country calling code that acts as a prefix to the main telephone number.
        Parameters:
        countryCode - The country calling code that acts as a prefix to the main telephone number.
      • setPhoneNumber

        public void setPhoneNumber​(String phoneNumber)
        The telephone number, including the area code.
        Parameters:
        phoneNumber - The telephone number, including the area code.
      • setExtension

        public void setExtension​(String extension)
        The internal extension for this phone.
        Parameters:
        extension - The internal extension for this phone.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object