public final class ImmutableStarter<T extends RunningProcess> extends Starter<T>
Starter.
Use the builder to create immutable instances:
ImmutableStarter.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStarter.Builder<T extends RunningProcess>
Builds instances of type
ImmutableStarter. |
| Modifier and Type | Method and Description |
|---|---|
de.flapdoodle.reverse.StateID<ProcessArguments> |
arguments() |
static <T extends RunningProcess> |
builder(RunningProcessFactory<T> runningProcessFactory)
Creates a builder for
ImmutableStarter. |
static <T extends RunningProcess> |
copyOf(Starter<T> instance)
Creates an immutable copy of a
Starter value. |
de.flapdoodle.reverse.StateID<T> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStarter that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
processExecutable, processWorkingDir, processConfig, processEnv, arguments, processOutput, supportConfig, transitionLabel, destination, runningProcessFactory. |
de.flapdoodle.reverse.StateID<ProcessConfig> |
processConfig() |
de.flapdoodle.reverse.StateID<ProcessEnv> |
processEnv() |
de.flapdoodle.reverse.StateID<ExtractedFileSet> |
processExecutable() |
de.flapdoodle.reverse.StateID<ProcessOutput> |
processOutput() |
de.flapdoodle.reverse.StateID<ProcessWorkingDir> |
processWorkingDir() |
protected RunningProcessFactory<T> |
runningProcessFactory() |
de.flapdoodle.reverse.StateID<SupportConfig> |
supportConfig() |
String |
toString()
Prints the immutable value
Starter with attribute values. |
String |
transitionLabel() |
ImmutableStarter<T> |
withArguments(de.flapdoodle.reverse.StateID<ProcessArguments> value)
Copy the current immutable object by setting a value for the
arguments attribute. |
ImmutableStarter<T> |
withDestination(de.flapdoodle.reverse.StateID<T> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableStarter<T> |
withProcessConfig(de.flapdoodle.reverse.StateID<ProcessConfig> value)
Copy the current immutable object by setting a value for the
processConfig attribute. |
ImmutableStarter<T> |
withProcessEnv(de.flapdoodle.reverse.StateID<ProcessEnv> value)
Copy the current immutable object by setting a value for the
processEnv attribute. |
ImmutableStarter<T> |
withProcessExecutable(de.flapdoodle.reverse.StateID<ExtractedFileSet> value)
Copy the current immutable object by setting a value for the
processExecutable attribute. |
ImmutableStarter<T> |
withProcessOutput(de.flapdoodle.reverse.StateID<ProcessOutput> value)
Copy the current immutable object by setting a value for the
processOutput attribute. |
ImmutableStarter<T> |
withProcessWorkingDir(de.flapdoodle.reverse.StateID<ProcessWorkingDir> value)
Copy the current immutable object by setting a value for the
processWorkingDir attribute. |
ImmutableStarter<T> |
withRunningProcessFactory(RunningProcessFactory<T> value)
Copy the current immutable object by setting a value for the
runningProcessFactory attribute. |
ImmutableStarter<T> |
withSupportConfig(de.flapdoodle.reverse.StateID<SupportConfig> value)
Copy the current immutable object by setting a value for the
supportConfig attribute. |
ImmutableStarter<T> |
withTransitionLabel(String value)
Copy the current immutable object by setting a value for the
transitionLabel attribute. |
result, sources, with, withDefaultspublic de.flapdoodle.reverse.StateID<ExtractedFileSet> processExecutable()
processExecutable in class RunAProcess<T extends RunningProcess,T extends RunningProcess>processExecutable attributepublic de.flapdoodle.reverse.StateID<ProcessWorkingDir> processWorkingDir()
processWorkingDir in class RunAProcess<T extends RunningProcess,T extends RunningProcess>processWorkingDir attributepublic de.flapdoodle.reverse.StateID<ProcessConfig> processConfig()
processConfig in class RunAProcess<T extends RunningProcess,T extends RunningProcess>processConfig attributepublic de.flapdoodle.reverse.StateID<ProcessEnv> processEnv()
processEnv in class RunAProcess<T extends RunningProcess,T extends RunningProcess>processEnv attributepublic de.flapdoodle.reverse.StateID<ProcessArguments> arguments()
arguments in class RunAProcess<T extends RunningProcess,T extends RunningProcess>arguments attributepublic de.flapdoodle.reverse.StateID<ProcessOutput> processOutput()
processOutput in class RunAProcess<T extends RunningProcess,T extends RunningProcess>processOutput attributepublic de.flapdoodle.reverse.StateID<SupportConfig> supportConfig()
supportConfig in class RunAProcess<T extends RunningProcess,T extends RunningProcess>supportConfig attributepublic String transitionLabel()
transitionLabel in interface de.flapdoodle.reverse.naming.HasLabeltransitionLabel in class Starter<T extends RunningProcess>transitionLabel attributepublic de.flapdoodle.reverse.StateID<T> destination()
destination in interface de.flapdoodle.reverse.Transition<T extends RunningProcess>destination in class Starter<T extends RunningProcess>destination attributeprotected RunningProcessFactory<T> runningProcessFactory()
runningProcessFactory in class Starter<T extends RunningProcess>runningProcessFactory attributepublic final ImmutableStarter<T> withProcessExecutable(de.flapdoodle.reverse.StateID<ExtractedFileSet> value)
processExecutable attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for processExecutablethis objectpublic final ImmutableStarter<T> withProcessWorkingDir(de.flapdoodle.reverse.StateID<ProcessWorkingDir> value)
processWorkingDir attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for processWorkingDirthis objectpublic final ImmutableStarter<T> withProcessConfig(de.flapdoodle.reverse.StateID<ProcessConfig> value)
processConfig attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for processConfigthis objectpublic final ImmutableStarter<T> withProcessEnv(de.flapdoodle.reverse.StateID<ProcessEnv> value)
processEnv attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for processEnvthis objectpublic final ImmutableStarter<T> withArguments(de.flapdoodle.reverse.StateID<ProcessArguments> value)
arguments attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for argumentsthis objectpublic final ImmutableStarter<T> withProcessOutput(de.flapdoodle.reverse.StateID<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 ImmutableStarter<T> withSupportConfig(de.flapdoodle.reverse.StateID<SupportConfig> value)
supportConfig attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for supportConfigthis objectpublic final ImmutableStarter<T> withTransitionLabel(String value)
transitionLabel attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for transitionLabelthis objectpublic final ImmutableStarter<T> withDestination(de.flapdoodle.reverse.StateID<T> value)
destination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for destinationthis objectpublic final ImmutableStarter<T> withRunningProcessFactory(RunningProcessFactory<T> value)
runningProcessFactory attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for runningProcessFactorythis objectpublic boolean equals(Object another)
ImmutableStarter that have equal attribute values.public int hashCode()
processExecutable, processWorkingDir, processConfig, processEnv, arguments, processOutput, supportConfig, transitionLabel, destination, runningProcessFactory.public String toString()
Starter with attribute values.public static <T extends RunningProcess> ImmutableStarter<T> copyOf(Starter<T> instance)
Starter value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T extends RunningProcess> ImmutableStarter.Builder<T> builder(RunningProcessFactory<T> runningProcessFactory)
ImmutableStarter.
ImmutableStarter.<T>builder()
.processExecutable(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.archives.ExtractedFileSet>) // optional processExecutable
.processWorkingDir(de.flapdoodle.reverse.StateID<ProcessWorkingDir>) // optional processWorkingDir
.processConfig(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessConfig>) // optional processConfig
.processEnv(de.flapdoodle.reverse.StateID<ProcessEnv>) // optional processEnv
.arguments(de.flapdoodle.reverse.StateID<ProcessArguments>) // optional arguments
.processOutput(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.io.ProcessOutput>) // optional processOutput
.supportConfig(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.config.SupportConfig>) // optional supportConfig
.transitionLabel(String) // optional transitionLabel
.destination(de.flapdoodle.reverse.StateID<T>) // required destination
.runningProcessFactory(de.flapdoodle.embed.process.types.RunningProcessFactory<T>) // required runningProcessFactory
.build();
T - generic parameter TrunningProcessFactory - runningProcessFactory parameterCopyright © 2024. All rights reserved.