public static final class ImmutableStart.Builder extends Object
ImmutableStart.
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 |
|---|---|
ImmutableStart |
build()
Builds a new
ImmutableStart. |
ImmutableStart.Builder |
from(HasLine instance)
Fill a builder with attribute values from the provided
de.flapdoodle.testdoc.HasLine instance. |
ImmutableStart.Builder |
from(Start instance)
Fill a builder with attribute values from the provided
de.flapdoodle.testdoc.Start instance. |
ImmutableStart.Builder |
label(Optional<String> label)
Initializes the optional value
label to label. |
ImmutableStart.Builder |
label(String label)
Initializes the optional value
label to label. |
ImmutableStart.Builder |
line(Line line)
Initializes the value for the
line attribute. |
public final ImmutableStart.Builder from(Start instance)
de.flapdoodle.testdoc.Start instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStart.Builder from(HasLine instance)
de.flapdoodle.testdoc.HasLine instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStart.Builder line(Line line)
line attribute.line - The value for linethis builder for use in a chained invocationpublic final ImmutableStart.Builder label(String label)
label to label.label - The value for labelthis builder for chained invocationpublic final ImmutableStart.Builder label(Optional<String> label)
label to label.label - The value for labelthis builder for use in a chained invocationpublic ImmutableStart build()
ImmutableStart.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.