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

      public ListBuilder​(java.util.function.Supplier<B> builderCtor)
  • Method Details