public static class Parameters.Builder
extends java.lang.Object
Parameters
.
The builder doesn't allow to create Parameters
with duplicated identifiers.
Modifier and Type | Method and Description |
---|---|
Parameters.Builder |
addParameter(java.lang.String identifier,
Parameter parameter)
Adds a parameters with the specified identifier.
|
Parameters.Builder |
addParameters(Parameters otherParameters)
Adds parameters with identifiers to the builder.
|
Parameters |
build()
Returns the assembled
Parameters . |
@CanIgnoreReturnValue public Parameters.Builder addParameter(java.lang.String identifier, Parameter parameter)
identifier
- the identifier for a parameterparameter
- the Parameter
to add@CanIgnoreReturnValue public Parameters.Builder addParameters(Parameters otherParameters)
otherParameters
- the parameters to addjava.lang.IllegalArgumentException
- if duplicated identifiers were foundpublic Parameters build()
Parameters
.