public class Phone extends Object implements Serializable
| Constructor and Description |
|---|
Phone() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getCountryCode()
The country calling code that acts as a prefix to the main telephone number.
|
String |
getExtension()
The internal extension for this phone.
|
String |
getPhoneNumber()
The telephone number, including the area code.
|
int |
hashCode() |
void |
setCountryCode(String countryCode)
The country calling code that acts as a prefix to the main telephone number.
|
void |
setExtension(String extension)
The internal extension for this phone.
|
void |
setPhoneNumber(String phoneNumber)
The telephone number, including the area code.
|
String |
toString() |
public String getCountryCode()
public String getPhoneNumber()
public String getExtension()
public void setCountryCode(String countryCode)
countryCode - The country calling code that acts as a prefix to the main telephone
number.public void setPhoneNumber(String phoneNumber)
phoneNumber - The telephone number, including the area code.public void setExtension(String extension)
extension - The internal extension for this phone.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.