@NotThreadSafe public static final class ImmutableProcResult.Builder extends Object
ImmutableProcResult.
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 |
|---|---|
ImmutableProcResult |
build()
Builds a new
ImmutableProcResult. |
ImmutableProcResult.Builder |
exitCode(int exitCode)
Initializes the value for the
exitCode attribute. |
ImmutableProcResult.Builder |
from(ProcResult instance)
Fill a builder with attribute values from the provided
ProcResult instance. |
ImmutableProcResult.Builder |
stdOutput(String stdOutput)
Initializes the value for the
stdOutput attribute. |
public final ImmutableProcResult.Builder from(ProcResult instance)
ProcResult instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableProcResult.Builder exitCode(int exitCode)
exitCode attribute.exitCode - The value for exitCodethis builder for use in a chained invocationpublic final ImmutableProcResult.Builder stdOutput(String stdOutput)
stdOutput attribute.stdOutput - The value for stdOutputthis builder for use in a chained invocationpublic ImmutableProcResult build()
ImmutableProcResult.IllegalStateException - if any required attributes are missingCopyright © 2016–2021. All rights reserved.