Class ContactPhoneField

  • All Implemented Interfaces:
    BaseContactField
    Direct Known Subclasses:
    EditableContactPhoneField

    public class ContactPhoneField
    extends ContactField
    Represents a phone number field associated with a contact. Only one phone number can be default for a given contact.
    • Method Detail

      • getPhoneNumber

        public java.lang.String getPhoneNumber()
        Phone number.
        Returns:
        A String containing the phone number.
      • getLabel1

        public java.lang.String getLabel1()
        The phone number Label1.
        Returns:
        A String containing the Label1.
      • getLabel2

        public java.lang.String getLabel2()
        The phone number Label2.
        Returns:
        A String containing the Label2.
      • getCategory

        public java.lang.String getCategory()
        The phone number category.
        Returns:
        A String containing the category.
      • getType

        public ContactPhoneNumberType getType()
        The phone number type, i.e work.
        Returns:
        The phone number type.
      • isSpeedDialEnabled

        public boolean isSpeedDialEnabled()
        The phone number speed dial flag.
        Returns:
        true if speed dial is enabled.
      • isDefault

        public boolean isDefault()
        Is this the default phone number for the contact?
        Returns:
        True if this is the default phone number in the list.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class ContactField