Package google.registry.model.contact
Class PostalInfo
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.contact.PostalInfo
-
- All Implemented Interfaces:
Buildable
,Buildable.Overlayable<PostalInfo>
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Embeddable public class PostalInfo extends ImmutableObject implements Buildable.Overlayable<PostalInfo>, UnsafeSerializable
Implementation of both "postalInfoType" and "chgPostalInfoType" from RFC5733.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PostalInfo.Builder
A builder for constructingPostalInfo
, since its changes get overlayed.static class
PostalInfo.Type
The type of the address, either localized or international.-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,B extends Buildable.GenericBuilder<?,?>>, Buildable.Overlayable<T>
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description PostalInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostalInfo.Builder
asBuilder()
ContactAddress
getAddress()
java.lang.String
getName()
java.lang.String
getOrg()
PostalInfo.Type
getType()
PostalInfo
overlay(PostalInfo source)
Return an overlay of this object using non-null fields from the source.-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getOrg
public java.lang.String getOrg()
-
getAddress
public ContactAddress getAddress()
-
getType
public PostalInfo.Type getType()
-
overlay
public PostalInfo overlay(PostalInfo source)
Description copied from interface:Buildable.Overlayable
Return an overlay of this object using non-null fields from the source.- Specified by:
overlay
in interfaceBuildable.Overlayable<PostalInfo>
-
asBuilder
public PostalInfo.Builder asBuilder()
-
-