Package google.registry.model.eppcommon
Class PhoneNumber
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.eppcommon.PhoneNumber
- All Implemented Interfaces:
UnsafeSerializable
,Serializable
,Cloneable
- Direct Known Subclasses:
ContactPhoneNumber
,MarkPhoneNumber
@Embeddable
@MappedSuperclass
public class PhoneNumber
extends ImmutableObject
implements UnsafeSerializable
Container for generic E164 phone number.
This is the "e164" type from RFC5733. It also matches the "e164Type" type from Mark and Signed Mark Objects Mapping
"Contact telephone number structure is derived from structures defined in [ITU.E164.2005]. Telephone numbers described in this mapping are character strings that MUST begin with a plus sign ("+", ASCII value 0x002B), followed by a country code defined in [ITU.E164.2005], followed by a dot (".", ASCII value 0x002E), followed by a sequence of digits representing the telephone number. An optional "x" attribute is provided to note telephone extension information."
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
PhoneNumber.Builder<T extends PhoneNumber>
A builder for constructingPhoneNumber
.Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if both fields of the phone number are null.Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
PhoneNumber
public PhoneNumber()
-
-
Method Details
-
getPhoneNumber
-
getExtension
-
toPhoneString
-
hasNullFields
public boolean hasNullFields()Returns true if both fields of the phone number are null.
-