Class Phone


  • public class Phone
    extends Object
    Phone
    • Constructor Detail

      • Phone

        public Phone()
    • Method Detail

      • phoneType

        public Phone phoneType​(Phone.PhoneTypeEnum phoneType)
        phoneType
        Parameters:
        phoneType - PhoneTypeEnum
        Returns:
        Phone
      • setPhoneType

        public void setPhoneType​(Phone.PhoneTypeEnum phoneType)
        phoneType
        Parameters:
        phoneType - PhoneTypeEnum
      • phoneNumber

        public Phone phoneNumber​(String phoneNumber)
        max length = 50
        Parameters:
        phoneNumber - String
        Returns:
        Phone
      • getPhoneNumber

        public String getPhoneNumber()
        max length = 50
        Returns:
        phoneNumber
      • setPhoneNumber

        public void setPhoneNumber​(String phoneNumber)
        max length = 50
        Parameters:
        phoneNumber - String
      • phoneAreaCode

        public Phone phoneAreaCode​(String phoneAreaCode)
        max length = 10
        Parameters:
        phoneAreaCode - String
        Returns:
        Phone
      • getPhoneAreaCode

        public String getPhoneAreaCode()
        max length = 10
        Returns:
        phoneAreaCode
      • setPhoneAreaCode

        public void setPhoneAreaCode​(String phoneAreaCode)
        max length = 10
        Parameters:
        phoneAreaCode - String
      • phoneCountryCode

        public Phone phoneCountryCode​(String phoneCountryCode)
        max length = 20
        Parameters:
        phoneCountryCode - String
        Returns:
        Phone
      • getPhoneCountryCode

        public String getPhoneCountryCode()
        max length = 20
        Returns:
        phoneCountryCode
      • setPhoneCountryCode

        public void setPhoneCountryCode​(String phoneCountryCode)
        max length = 20
        Parameters:
        phoneCountryCode - String
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object