public final class PhoneNumberIdentifier extends CommunicationIdentifier
| Constructor and Description |
|---|
PhoneNumberIdentifier(java.lang.String phoneNumber)
Creates a PhoneNumberIdentifier object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object that) |
java.lang.String |
getPhoneNumber() |
int |
hashCode() |
PhoneNumberIdentifier |
setRawId(java.lang.String rawId)
Set full id of the identifier
RawId is the encoded format for identifiers to store in databases or as stable keys in general.
|
fromRawId, getRawIdpublic PhoneNumberIdentifier(java.lang.String phoneNumber)
phoneNumber - the string identifier representing the PhoneNumber in E.164 format.
E.164 is a phone number formatted as +[CountryCode][AreaCode][LocalNumber] eg. "+18005555555"java.lang.IllegalArgumentException - thrown if phoneNumber parameter fail the validation.public java.lang.String getPhoneNumber()
public PhoneNumberIdentifier setRawId(java.lang.String rawId)
setRawId in class CommunicationIdentifierrawId - full id of the identifierpublic boolean equals(java.lang.Object that)
equals in class CommunicationIdentifierpublic int hashCode()
hashCode in class CommunicationIdentifier