java.lang.Object
com.broadleafcommerce.customer.domain.Phone
All Implemented Interfaces:
Serializable

public class Phone extends Object implements Serializable
Author:
Chad Harchar (charchar)
See Also:
  • Constructor Details

    • Phone

      public Phone()
  • Method Details

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object