Interface AdaptersConfig.Builder

    • Method Detail

      • adapters

        AdaptersConfig.Builder adapters​(Collection<Adapter> adapters)

        A list of adapters to be used when analyzing the specified document.

        Parameters:
        adapters - A list of adapters to be used when analyzing the specified document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • adapters

        AdaptersConfig.Builder adapters​(Adapter... adapters)

        A list of adapters to be used when analyzing the specified document.

        Parameters:
        adapters - A list of adapters to be used when analyzing the specified document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • adapters

        AdaptersConfig.Builder adapters​(Consumer<Adapter.Builder>... adapters)

        A list of adapters to be used when analyzing the specified document.

        This is a convenience method that creates an instance of the Adapter.Builder avoiding the need to create one manually via Adapter.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #adapters(List).

        Parameters:
        adapters - a consumer that will call methods on Adapter.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #adapters(java.util.Collection)