public class PhoneNumberWithCountryCode extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PhoneNumberWithCountryCode.Builder
Class to build instances of
PhoneNumberWithCountryCode. |
| Constructor and Description |
|---|
PhoneNumberWithCountryCode()
Default constructor.
|
PhoneNumberWithCountryCode(String countryCode,
String nationalNumber)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCountryCode()
Getter for CountryCode.
|
String |
getNationalNumber()
Getter for NationalNumber.
|
void |
setCountryCode(String countryCode)
Setter for CountryCode.
|
void |
setNationalNumber(String nationalNumber)
Setter for NationalNumber.
|
PhoneNumberWithCountryCode.Builder |
toBuilder()
Builds a new
PhoneNumberWithCountryCode.Builder object. |
String |
toString()
Converts this PhoneNumberWithCountryCode into string format.
|
public PhoneNumberWithCountryCode()
public String getCountryCode()
public void setCountryCode(String countryCode)
countryCode - Value for Stringpublic String getNationalNumber()
public void setNationalNumber(String nationalNumber)
nationalNumber - Value for Stringpublic String toString()
public PhoneNumberWithCountryCode.Builder toBuilder()
PhoneNumberWithCountryCode.Builder object.
Creates the instance with the state of the current model.PhoneNumberWithCountryCode.Builder objectCopyright © 2025. All rights reserved.