@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableProcResult extends Object implements ProcResult
ProcResult.
Use the builder to create immutable instances:
ImmutableProcResult.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableProcResult.Builder
Builds instances of type
ImmutableProcResult. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableProcResult.Builder |
builder()
Creates a builder for
ImmutableProcResult. |
static ImmutableProcResult |
copyOf(ProcResult instance)
Creates an immutable copy of a
ProcResult value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableProcResult that have equal attribute values. |
int |
getExitCode() |
String |
getStdOutput() |
int |
hashCode()
Computes a hash code from attributes:
exitCode, stdOutput. |
String |
toString()
Prints the immutable value
ProcResult with attribute values. |
ImmutableProcResult |
withExitCode(int value)
Copy the current immutable object by setting a value for the
exitCode attribute. |
ImmutableProcResult |
withStdOutput(String value)
Copy the current immutable object by setting a value for the
stdOutput attribute. |
public int getExitCode()
getExitCode in interface ProcResultexitCode attributepublic String getStdOutput()
getStdOutput in interface ProcResultstdOutput attributepublic final ImmutableProcResult withExitCode(int value)
exitCode attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for exitCodethis objectpublic final ImmutableProcResult withStdOutput(String value)
stdOutput attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for stdOutputthis objectpublic boolean equals(@Nullable Object another)
ImmutableProcResult that have equal attribute values.public int hashCode()
exitCode, stdOutput.public String toString()
ProcResult with attribute values.public static ImmutableProcResult copyOf(ProcResult instance)
ProcResult value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableProcResult.Builder builder()
ImmutableProcResult.
ImmutableProcResult.builder()
.exitCode(int) // required exitCode
.stdOutput(String) // required stdOutput
.build();
Copyright © 2016–2021. All rights reserved.