@ProviderType
public static interface CustomDocumentation.Builder
CustomDocumentation
object.Modifier and Type | Method and Description |
---|---|
CustomDocumentation.Builder |
addDescription(java.lang.String name,
java.lang.String description)
Adds a description for the name.
|
CustomDocumentation.Builder |
addLocalizedDescription(java.lang.String name,
java.util.function.Function<java.util.Locale,java.lang.String> stringFunction)
Adds the name's localized description via the function that takes the
locale and returns the description.
|
CustomDocumentation |
build()
Constructs and returns a
CustomDocumentation instance with
the information provided to the builder. |
CustomDocumentation.Builder addDescription(java.lang.String name, java.lang.String description)
name
- the namedescription
- the descriptionCustomDocumentation.Builder addLocalizedDescription(java.lang.String name, java.util.function.Function<java.util.Locale,java.lang.String> stringFunction)
name
- the namestringFunction
- the functionCustomDocumentation build()
CustomDocumentation
instance with
the information provided to the builder.