public final class ImmutableRuntimeConfig extends Object implements RuntimeConfig
RuntimeConfig.
Use the builder to create immutable instances:
ImmutableRuntimeConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRuntimeConfig.Builder
Builds instances of type
ImmutableRuntimeConfig. |
| Modifier and Type | Method and Description |
|---|---|
IArtifactStore |
artifactStore() |
static ImmutableRuntimeConfig.Builder |
builder()
Creates a builder for
ImmutableRuntimeConfig. |
CommandLinePostProcessor |
commandLinePostProcessor() |
static ImmutableRuntimeConfig |
copyOf(RuntimeConfig instance)
Creates an immutable copy of a
RuntimeConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRuntimeConfig that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
processOutput, commandLinePostProcessor, artifactStore, isDaemonProcess. |
boolean |
isDaemonProcess() |
ProcessOutput |
processOutput() |
String |
toString()
Prints the immutable value
RuntimeConfig with attribute values. |
ImmutableRuntimeConfig |
withArtifactStore(IArtifactStore value)
Copy the current immutable object by setting a value for the
artifactStore attribute. |
ImmutableRuntimeConfig |
withCommandLinePostProcessor(CommandLinePostProcessor value)
Copy the current immutable object by setting a value for the
commandLinePostProcessor attribute. |
ImmutableRuntimeConfig |
withIsDaemonProcess(boolean value)
Copy the current immutable object by setting a value for the
isDaemonProcess attribute. |
ImmutableRuntimeConfig |
withProcessOutput(ProcessOutput value)
Copy the current immutable object by setting a value for the
processOutput attribute. |
public ProcessOutput processOutput()
processOutput in interface RuntimeConfigprocessOutput attributepublic CommandLinePostProcessor commandLinePostProcessor()
commandLinePostProcessor in interface RuntimeConfigcommandLinePostProcessor attributepublic IArtifactStore artifactStore()
artifactStore in interface RuntimeConfigartifactStore attributepublic boolean isDaemonProcess()
isDaemonProcess in interface RuntimeConfigisDaemonProcess attributepublic final ImmutableRuntimeConfig withProcessOutput(ProcessOutput value)
processOutput attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for processOutputthis objectpublic final ImmutableRuntimeConfig withCommandLinePostProcessor(CommandLinePostProcessor value)
commandLinePostProcessor attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for commandLinePostProcessorthis objectpublic final ImmutableRuntimeConfig withArtifactStore(IArtifactStore value)
artifactStore attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for artifactStorethis objectpublic final ImmutableRuntimeConfig withIsDaemonProcess(boolean value)
isDaemonProcess attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isDaemonProcessthis objectpublic boolean equals(Object another)
ImmutableRuntimeConfig that have equal attribute values.public int hashCode()
processOutput, commandLinePostProcessor, artifactStore, isDaemonProcess.public String toString()
RuntimeConfig with attribute values.public static ImmutableRuntimeConfig copyOf(RuntimeConfig instance)
RuntimeConfig 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 ImmutableRuntimeConfig.Builder builder()
ImmutableRuntimeConfig.
ImmutableRuntimeConfig.builder()
.processOutput(de.flapdoodle.embed.process.config.process.ProcessOutput) // required processOutput
.commandLinePostProcessor(de.flapdoodle.embed.process.runtime.CommandLinePostProcessor) // optional commandLinePostProcessor
.artifactStore(de.flapdoodle.embed.process.store.IArtifactStore) // required artifactStore
.isDaemonProcess(boolean) // optional isDaemonProcess
.build();
builder in interface RuntimeConfigCopyright © 2022. All rights reserved.