Class Parameters.Builder

java.lang.Object
io.helidon.common.parameters.Parameters.Builder
All Implemented Interfaces:
Builder<Parameters.Builder,Parameters>, Supplier<Parameters>
Enclosing interface:
Parameters

public static class Parameters.Builder extends Object implements Builder<Parameters.Builder,Parameters>
Builder of a new Parameters instance.
  • Method Details

    • build

      public Parameters build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<Parameters.Builder,Parameters>
      Returns:
      instance of the built type
    • mapperManager

      public Parameters.Builder mapperManager(MapperManager mapperManager)
      Configure mapper manager to use.
      Parameters:
      mapperManager - mapper manager
      Returns:
      updated builder
    • add

      public Parameters.Builder add(String name, String... values)
      Add new value(s) to the parameters. If the name existed, values will be added.
      Parameters:
      name - parameter name
      values - parameter value
      Returns:
      updated builder
    • set

      public Parameters.Builder set(String name, String... values)
      Set new value(s) to the parameters. If the name existed, values will be replaced.
      Parameters:
      name - parameter name
      values - parameter value
      Returns:
      updated builder