PhoneNumberIdentifier Class

public final class PhoneNumberIdentifier
extends CommunicationIdentifier

Communication identifier for Communication Services Phone Numbers

Constructor Summary

Constructor Description
PhoneNumberIdentifier(String phoneNumber)

Creates a PhoneNumberIdentifier object

Method Summary

Modifier and Type Method and Description
boolean equals(Object that)
String getPhoneNumber()
int hashCode()
PhoneNumberIdentifier setRawId(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.

Methods inherited from CommunicationIdentifier

Methods inherited from java.lang.Object

Constructor Details

PhoneNumberIdentifier

public PhoneNumberIdentifier(String phoneNumber)

Creates a PhoneNumberIdentifier object

Parameters:

phoneNumber - the string identifier representing the PhoneNumber in E.164 format. E.164 is a phone number formatted as +[CountryCode][AreaCode][LocalNumber] eg. "+18005555555"

Method Details

equals

public boolean equals(Object that)

Overrides:

PhoneNumberIdentifier.equals(Object that)

Parameters:

that

getPhoneNumber

public String getPhoneNumber()

Returns:

the string identifier representing the object identity

hashCode

public int hashCode()

Overrides:

PhoneNumberIdentifier.hashCode()

setRawId

public PhoneNumberIdentifier setRawId(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.

Overrides:

PhoneNumberIdentifier.setRawId(String rawId)

Parameters:

rawId - full id of the identifier

Returns:

PhoneNumberIdentifier object itself

Applies to