@NotThreadSafe public static final class ImmutableConverter.Builder extends Object
ImmutableConverter.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableConverter.Builder |
addAllExamples(Iterable<String> elements)
Adds elements to
examples list. |
ImmutableConverter.Builder |
addAllSections(Iterable<? extends Notes.Section> elements)
Adds elements to
sections list. |
ImmutableConverter.Builder |
addExamples(String... elements)
Adds elements to
examples list. |
ImmutableConverter.Builder |
addExamples(String element)
Adds one element to
examples list. |
ImmutableConverter.Builder |
addSections(Notes.Section... elements)
Adds elements to
sections list. |
ImmutableConverter.Builder |
addSections(Notes.Section element)
Adds one element to
sections list. |
ImmutableConverter |
build()
Builds a new
ImmutableConverter. |
ImmutableConverter.Builder |
cls(Class cls)
Initializes the value for the
cls attribute. |
ImmutableConverter.Builder |
configuration(Plugin.Configuration configuration)
Initializes the value for the
configuration attribute. |
ImmutableConverter.Builder |
danger(String danger)
Initializes the value for the
danger attribute. |
ImmutableConverter.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableConverter.Builder |
examples(Iterable<String> elements)
Sets or replaces all elements for
examples list. |
ImmutableConverter.Builder |
from(Notes instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Notes instance. |
ImmutableConverter.Builder |
from(Plugin.Configurable instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Configurable instance. |
ImmutableConverter.Builder |
from(Plugin.Converter instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Converter instance. |
ImmutableConverter.Builder |
icon(String icon)
Initializes the value for the
icon attribute. |
ImmutableConverter.Builder |
important(String important)
Initializes the value for the
important attribute. |
ImmutableConverter.Builder |
introduction(String introduction)
Initializes the value for the
introduction attribute. |
ImmutableConverter.Builder |
note(String note)
Initializes the value for the
note attribute. |
ImmutableConverter.Builder |
sections(Iterable<? extends Notes.Section> elements)
Sets or replaces all elements for
sections list. |
ImmutableConverter.Builder |
tip(String tip)
Initializes the value for the
tip attribute. |
ImmutableConverter.Builder |
title(String title)
Initializes the value for the
title attribute. |
ImmutableConverter.Builder |
warning(String warning)
Initializes the value for the
warning attribute. |
@CanIgnoreReturnValue public final ImmutableConverter.Builder from(Notes instance)
com.github.jcustenborder.kafka.connect.utils.templates.Notes instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder from(Plugin.Configurable instance)
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Configurable instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder from(Plugin.Converter instance)
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Converter instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder warning(@Nullable String warning)
warning attribute.warning - The value for warning (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder tip(@Nullable String tip)
tip attribute.tip - The value for tip (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder important(@Nullable String important)
important attribute.important - The value for important (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder danger(@Nullable String danger)
danger attribute.danger - The value for danger (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder note(@Nullable String note)
note attribute.note - The value for note (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder title(@Nullable String title)
title attribute.title - The value for title (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder description(@Nullable String description)
description attribute.description - The value for description (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder icon(@Nullable String icon)
icon attribute.icon - The value for icon (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder introduction(@Nullable String introduction)
introduction attribute.introduction - The value for introduction (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder addSections(Notes.Section element)
sections list.element - A sections elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder addSections(Notes.Section... elements)
sections list.elements - An array of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder sections(@Nullable Iterable<? extends Notes.Section> elements)
sections list.elements - An iterable of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder addAllSections(Iterable<? extends Notes.Section> elements)
sections list.elements - An iterable of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder cls(Class cls)
cls attribute.cls - The value for clsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder configuration(@Nullable Plugin.Configuration configuration)
configuration attribute.configuration - The value for configuration (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder addExamples(String element)
examples list.element - A examples elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder addExamples(String... elements)
examples list.elements - An array of examples elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder examples(Iterable<String> elements)
examples list.elements - An iterable of examples elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverter.Builder addAllExamples(Iterable<String> elements)
examples list.elements - An iterable of examples elementsthis builder for use in a chained invocationpublic ImmutableConverter build()
ImmutableConverter.IllegalStateException - if any required attributes are missingCopyright © 2016–2025. All rights reserved.