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