Class BaseDomainLabelList<T extends java.lang.Comparable<?>,​R extends DomainLabelEntry<T,​?>>

    • Constructor Detail

      • BaseDomainLabelList

        public BaseDomainLabelList()
    • Method Detail

      • getRevisionId

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

        public java.lang.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 com.google.common.collect.ImmutableMap<java.lang.String,​R> parse​(java.lang.Iterable<java.lang.String> lines)
        Turns the list CSV data into a map of labels to parsed data of type R.
        Parameters:
        lines - the CSV file, line by line
      • splitOnComment

        public static java.util.List<java.lang.String> splitOnComment​(java.lang.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 com.google.common.collect.ImmutableSet<java.lang.String> getReferencingTlds()
        Gets the names of the tlds that reference this list.
      • refersToList

        protected abstract boolean refersToList​(Registry registry,
                                                java.lang.String name)
      • getFromCache

        protected static <R> java.util.Optional<R> getFromCache​(java.lang.String listName,
                                                                com.google.common.cache.LoadingCache<java.lang.String,​R> cache)