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