Class NamedListBuilder<T>

  • Type Parameters:
    T - the type of the elements of the returned list.

    public class NamedListBuilder<T>
    extends Object
    Builder for instances of NamedList.
    • Constructor Detail

      • NamedListBuilder

        public NamedListBuilder()
        Creates a new Builder instance.
    • Method Detail

      • add

        public NamedListBuilder add​(String name,
                                    T value)
        Adds the given name-value pair to the end of the named list constructed by this builder.
      • build

        public org.apache.solr.common.util.NamedList<T> build()
        Returns the named list constructed by this builder.