Class DomainLabelEntry<T extends 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:
Cloneable, Comparable<D>
Direct Known Subclasses:
PremiumList.PremiumEntry, ReservedList.ReservedListEntry

@MappedSuperclass public abstract class DomainLabelEntry<T extends Comparable<?>,D extends DomainLabelEntry<?,?>> extends ImmutableObject implements Comparable<D>
Represents a label entry parsed from a line in a reserved/premium list txt file.
  • Constructor Details

    • DomainLabelEntry

      public DomainLabelEntry()
  • Method Details

    • getDomainLabel

      public 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).
    • compareTo

      public int compareTo(D other)
      Specified by:
      compareTo in interface Comparable<T extends Comparable<?>>