Class Phone
- java.lang.Object
-
- com.broadleafcommerce.order.common.domain.Phone
-
- All Implemented Interfaces:
Serializable
public class Phone extends Object implements Serializable
- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Phone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetCountryCode()The country calling code that acts as a prefix to the main telephone number.StringgetExtension()The internal extension for this phone.StringgetPhoneNumber()The telephone number, including the area code.inthashCode()voidsetCountryCode(String countryCode)The country calling code that acts as a prefix to the main telephone number.voidsetExtension(String extension)The internal extension for this phone.voidsetPhoneNumber(String phoneNumber)The telephone number, including the area code.StringtoString()
-
-
-
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)
-
-