Package google.registry.model
Interface Buildable.Overlayable<T>
-
- Type Parameters:
T
- the derived type
- All Superinterfaces:
Buildable
- All Known Implementing Classes:
PostalInfo
- Enclosing interface:
- Buildable
public static interface Buildable.Overlayable<T> extends Buildable
Interface for objects that can produce an "overlay", which means a copy where non-null fields from another object are copied over, but null fields on the source are not.Warning: Do not use
emptyToNull
methods in the getters of anBuildable.Overlayable
! We use null to mean "skip this field" whereas empty means "set this field to empty", so they are semantically different.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.Builder<S>, Buildable.GenericBuilder<S,B extends Buildable.GenericBuilder<?,?>>, Buildable.Overlayable<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
overlay(T source)
Return an overlay of this object using non-null fields from the source.
-