Package co.elastic.clients.util
Class ListBuilder<T,B>
java.lang.Object
co.elastic.clients.util.ListBuilder<T,B>
- All Implemented Interfaces:
ObjectBuilder<java.util.List<T>>
public class ListBuilder<T,B> extends java.lang.Object implements ObjectBuilder<java.util.List<T>>
-
Constructor Summary
Constructors Constructor Description ListBuilder(java.util.function.Supplier<B> builderCtor)
-
Method Summary
Modifier and Type Method Description ListBuilder<T,B>
add(java.util.function.Function<B,ObjectBuilder<T>> fn)
ListBuilder<T,B>
add(T value)
ListBuilder<T,B>
addAll(java.lang.Iterable<? extends T> iterable)
java.util.List<T>
build()
static <T, B extends ObjectBuilder<T>>
ListBuilder<T,B>of(java.util.function.Supplier<B> builderCtor)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ListBuilder
-
-
Method Details
-
of
public static <T, B extends ObjectBuilder<T>> ListBuilder<T,B> of(java.util.function.Supplier<B> builderCtor) -
add
-
add
-
addAll
-
build
- Specified by:
build
in interfaceObjectBuilder<T>
-