Package google.registry.model.tld.label
Class ReservedList.ReservedListEntry
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.tld.label.DomainLabelEntry<ReservationType,ReservedList.ReservedListEntry>
google.registry.model.tld.label.ReservedList.ReservedListEntry
- All Implemented Interfaces:
Buildable
,Serializable
,Cloneable
,Comparable<ReservedList.ReservedListEntry>
- Enclosing class:
ReservedList
@Entity(name="ReservedEntry")
public static class ReservedList.ReservedListEntry
extends DomainLabelEntry<ReservationType,ReservedList.ReservedListEntry>
implements Buildable, Serializable
A reserved list entry entity, persisted to the database, that represents a single label and its
reservation type.
- See Also:
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptiongoogle.registry.model.tld.label.ReservedList.ReservedListEntry.Builder
create
(String label, ReservationType reservationType, String comment) Creates aReservedList.ReservedListEntry
from a label, reservation type, and optional comment.getComment
(String comment) getValue()
Returns the value of the field (used for determining which entry takes priority over another).toString()
Returns a string view of the object, formatted like:Methods inherited from class google.registry.model.tld.label.DomainLabelEntry
compareTo, getDomainLabel
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toStringHelper
-
Constructor Details
-
ReservedListEntry
public ReservedListEntry()
-
-
Method Details
-
getComment
-
create
public static ReservedList.ReservedListEntry create(String label, ReservationType reservationType, @Nullable String comment) Creates aReservedList.ReservedListEntry
from a label, reservation type, and optional comment. -
getValue
Description copied from class:DomainLabelEntry
Returns the value of the field (used for determining which entry takes priority over another).- Specified by:
getValue
in classDomainLabelEntry<ReservationType,
ReservedList.ReservedListEntry>
-
asBuilder
public google.registry.model.tld.label.ReservedList.ReservedListEntry.Builder asBuilder() -
toString
Description copied from class:ImmutableObject
Returns a string view of the object, formatted like:ModelObject (@12345): { field1=value1 field2=[a,b,c] field3=AnotherModelObject: { foo=bar } }
- Overrides:
toString
in classImmutableObject
-