Class BaseDomainLabelList<T extends Comparable<?>,R extends DomainLabelEntry<T,?>>

Type Parameters:
T - The type of the root value being listed, e.g. ReservationType.
R - The type of domain label entry being listed, e.g. ReservedList.ReservedListEntry (note, must subclass DomainLabelEntry.
All Implemented Interfaces:
Buildable, Cloneable
Direct Known Subclasses:
PremiumList, ReservedList

@MappedSuperclass public abstract class BaseDomainLabelList<T extends Comparable<?>,R extends DomainLabelEntry<T,?>> extends ImmutableObject implements Buildable
Base class for ReservedList and PremiumList objects.
  • Constructor Details

    • BaseDomainLabelList

      public BaseDomainLabelList()
  • Method Details

    • getRevisionId

      public long getRevisionId()
      Returns the ID of this revision, or throws if null.
    • getName

      public String getName()
      Returns the name of the reserved list.
    • getCreationTimestamp

      public org.joda.time.DateTime getCreationTimestamp()
      Returns the creation time of this revision of the reserved list.
    • parse

      public<String,R> parse(Iterable<String> lines)
      Turns the list CSV data into a map of labels to parsed data of type R.
      lines - the CSV file, line by line
    • splitOnComment

      public static List<String> splitOnComment(String line)
      Helper function to extract the comment from an input line. Returns a list containing the line (sans comment) and the comment (in that order). If the line was blank or empty, then this method returns an empty list.
    • getReferencingTlds

      public final<String> getReferencingTlds()
      Gets the names of the tlds that reference this list.
    • refersToList

      protected abstract boolean refersToList(Tld tld, String name)