public final class ImmutableExecutedMongoShellProcess extends ExecutedMongoShellProcess
ExecutedMongoShellProcess.
Use the builder to create immutable instances:
ImmutableExecutedMongoShellProcess.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableExecutedMongoShellProcess.Builder
Builds instances of type
ImmutableExecutedMongoShellProcess. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableExecutedMongoShellProcess.Builder |
builder()
Creates a builder for
ImmutableExecutedMongoShellProcess. |
static ImmutableExecutedMongoShellProcess |
copyOf(ExecutedMongoShellProcess instance)
Creates an immutable copy of a
ExecutedMongoShellProcess value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableExecutedMongoShellProcess that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
returnCode. |
int |
returnCode() |
String |
toString()
Prints the immutable value
ExecutedMongoShellProcess with attribute values. |
ImmutableExecutedMongoShellProcess |
withReturnCode(int value)
Copy the current immutable object by setting a value for the
returnCode attribute. |
stop, withDefaultspublic int returnCode()
returnCode attributepublic final ImmutableExecutedMongoShellProcess withReturnCode(int value)
returnCode attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for returnCodethis objectpublic boolean equals(Object another)
ImmutableExecutedMongoShellProcess that have equal attribute values.public int hashCode()
returnCode.public String toString()
ExecutedMongoShellProcess with attribute values.public static ImmutableExecutedMongoShellProcess copyOf(ExecutedMongoShellProcess instance)
ExecutedMongoShellProcess 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 ImmutableExecutedMongoShellProcess.Builder builder()
ImmutableExecutedMongoShellProcess.
ImmutableExecutedMongoShellProcess.builder()
.returnCode(int) // required returnCode
.build();
Copyright © 2023. All rights reserved.