Package google.registry.model.tld.label
Class DomainLabelEntry<T extends java.lang.Comparable<?>,D extends DomainLabelEntry<?,?>>
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.tld.label.DomainLabelEntry<T,D>
-
- Type Parameters:
T
- The type of the value stored for the domain label, e.g.ReservationType
.
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<D>
- Direct Known Subclasses:
PremiumList.PremiumEntry
,ReservedList.ReservedListEntry
@MappedSuperclass public abstract class DomainLabelEntry<T extends java.lang.Comparable<?>,D extends DomainLabelEntry<?,?>> extends ImmutableObject implements java.lang.Comparable<D>
Represents a label entry parsed from a line in a reserved/premium list txt file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainLabelEntry.Builder<T extends DomainLabelEntry<?,?>,B extends DomainLabelEntry.Builder<T,?>>
A generic builder base.-
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
Constructors Constructor Description DomainLabelEntry()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(D other)
java.lang.String
getDomainLabel()
Returns the label of the field, which also happens to be used as the key for the Map object that is serialized from the database.abstract T
getValue()
Returns the value of the field (used for determining which entry takes priority over another).-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getDomainLabel
public java.lang.String getDomainLabel()
Returns the label of the field, which also happens to be used as the key for the Map object that is serialized from the database.
-
getValue
public abstract T getValue()
Returns the value of the field (used for determining which entry takes priority over another).
-
-