Package cool.solr.search.solr.util
Class NamedListBuilder<T>
- java.lang.Object
-
- cool.solr.search.solr.util.NamedListBuilder<T>
-
- Type Parameters:
T- the type of the elements of the returned list.
public class NamedListBuilder<T> extends Object
Builder for instances ofNamedList.
-
-
Constructor Summary
Constructors Constructor Description NamedListBuilder()Creates a new Builder instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedListBuilderadd(String name, T value)Adds the given name-value pair to the end of the named list constructed by this builder.org.apache.solr.common.util.NamedList<T>build()Returns the named list constructed by this builder.static <T> NamedListBuilder<T>namedListBuilder()
-
-
-
Method Detail
-
namedListBuilder
public static <T> NamedListBuilder<T> namedListBuilder()
-
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.
-
-