public static class ParameterValues.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ParameterValues |
build()
Builds a new
ParameterValues . |
ParameterValues.Builder |
defaultValue(String defaultValue)
Initializes the value for the
defaultValue attribute. |
ParameterValues.Builder |
putAllSubstitutions(Map<String,? extends String> substitutions)
Put all mappings from the specified map as entries to
substitutions map. |
ParameterValues.Builder |
putSubstitution(Map.Entry<String,? extends String> entry)
Put one entry to the
substitutions map. |
ParameterValues.Builder |
putSubstitution(String key,
String value)
Put one entry to the
substitutions map. |
ParameterValues.Builder |
substitutions(Map<String,? extends String> substitutions)
Sets or replaces all mappings from the specified map as entries for the
substitutions map. |
ParameterValues.Builder |
using(ParameterValues instance)
Fill a builder with attribute values from the provided
ParameterValues instance. |
public final ParameterValues.Builder using(ParameterValues instance)
ParameterValues
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ParameterValues.Builder putSubstitution(String key, String value)
substitutions
map.key
- The key in the substitutions mapvalue
- The associated value in the substitutions mapthis
builder for use in a chained invocationpublic final ParameterValues.Builder putSubstitution(Map.Entry<String,? extends String> entry)
substitutions
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final ParameterValues.Builder substitutions(Map<String,? extends String> substitutions)
substitutions
map. Nulls are not permittedsubstitutions
- The entries that will be added to the substitutions mapthis
builder for use in a chained invocationpublic final ParameterValues.Builder putAllSubstitutions(Map<String,? extends String> substitutions)
substitutions
map. Nulls are not permittedsubstitutions
- The entries that will be added to the substitutions mapthis
builder for use in a chained invocationpublic final ParameterValues.Builder defaultValue(@Nullable String defaultValue)
defaultValue
attribute.defaultValue
- The value for defaultValue (can be null
)this
builder for use in a chained invocationpublic ParameterValues build()
ParameterValues
.IllegalStateException
- if any required attributes are missingCopyright © 2016–2019 CLX Communications. All rights reserved.