public final class ImmutableProcessFactory extends ProcessFactory
ProcessFactory.
Use the builder to create immutable instances:
ImmutableProcessFactory.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableProcessFactory.Builder
Builds instances of type
ImmutableProcessFactory. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableProcessFactory.Builder |
builder()
Creates a builder for
ImmutableProcessFactory. |
static ImmutableProcessFactory |
copyOf(ProcessFactory instance)
Creates an immutable copy of a
ProcessFactory value. |
protected de.flapdoodle.reverse.Transition<Distribution> |
distribution() |
protected de.flapdoodle.reverse.Transition<DownloadCache> |
downloadCache() |
protected de.flapdoodle.reverse.Transition<Archive> |
downloadPackage() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableProcessFactory that have equal attribute values. |
protected de.flapdoodle.reverse.Transition<ExecutedProcess> |
executer() |
protected de.flapdoodle.reverse.Transition<ExtractedFileSetStore> |
extractedFileSetStore() |
protected de.flapdoodle.reverse.Transition<ExtractedFileSet> |
extractPackage() |
int |
hashCode()
Computes a hash code from attributes:
version, name, initTempDirectory, processWorkingDir, processConfig, processEnv, processArguments, processOutput, progressListener, supportConfig, persistentBaseDir, downloadCache, extractedFileSetStore, extractPackage, downloadPackage, distribution, packageInformation, osList, executer. |
protected de.flapdoodle.reverse.Transition<TempDir> |
initTempDirectory() |
protected de.flapdoodle.reverse.Transition<Name> |
name() |
protected Supplier<Collection<? extends de.flapdoodle.os.OS>> |
osList() |
protected Function<Distribution,Package> |
packageInformation() |
protected de.flapdoodle.reverse.Transition<PersistentDir> |
persistentBaseDir() |
protected de.flapdoodle.reverse.Transition<ProcessArguments> |
processArguments() |
protected de.flapdoodle.reverse.transitions.Start<ProcessConfig> |
processConfig() |
protected de.flapdoodle.reverse.Transition<ProcessEnv> |
processEnv() |
protected de.flapdoodle.reverse.Transition<ProcessOutput> |
processOutput() |
protected de.flapdoodle.reverse.Transition<ProcessWorkingDir> |
processWorkingDir() |
protected de.flapdoodle.reverse.Transition<ProgressListener> |
progressListener() |
protected de.flapdoodle.reverse.Transition<SupportConfig> |
supportConfig() |
String |
toString()
Prints the immutable value
ProcessFactory with attribute values. |
Version |
version() |
ImmutableProcessFactory |
withDistribution(de.flapdoodle.reverse.Transition<Distribution> value)
Copy the current immutable object by setting a value for the
distribution attribute. |
ImmutableProcessFactory |
withDownloadCache(de.flapdoodle.reverse.Transition<DownloadCache> value)
Copy the current immutable object by setting a value for the
downloadCache attribute. |
ImmutableProcessFactory |
withDownloadPackage(de.flapdoodle.reverse.Transition<Archive> value)
Copy the current immutable object by setting a value for the
downloadPackage attribute. |
ImmutableProcessFactory |
withExecuter(de.flapdoodle.reverse.Transition<ExecutedProcess> value)
Copy the current immutable object by setting a value for the
executer attribute. |
ImmutableProcessFactory |
withExtractedFileSetStore(de.flapdoodle.reverse.Transition<ExtractedFileSetStore> value)
Copy the current immutable object by setting a value for the
extractedFileSetStore attribute. |
ImmutableProcessFactory |
withExtractPackage(de.flapdoodle.reverse.Transition<ExtractedFileSet> value)
Copy the current immutable object by setting a value for the
extractPackage attribute. |
ImmutableProcessFactory |
withInitTempDirectory(de.flapdoodle.reverse.Transition<TempDir> value)
Copy the current immutable object by setting a value for the
initTempDirectory attribute. |
ImmutableProcessFactory |
withName(de.flapdoodle.reverse.Transition<Name> value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableProcessFactory |
withOsList(Supplier<Collection<? extends de.flapdoodle.os.OS>> value)
Copy the current immutable object by setting a value for the
osList attribute. |
ImmutableProcessFactory |
withPackageInformation(Function<Distribution,Package> value)
Copy the current immutable object by setting a value for the
packageInformation attribute. |
ImmutableProcessFactory |
withPersistentBaseDir(de.flapdoodle.reverse.Transition<PersistentDir> value)
Copy the current immutable object by setting a value for the
persistentBaseDir attribute. |
ImmutableProcessFactory |
withProcessArguments(de.flapdoodle.reverse.Transition<ProcessArguments> value)
Copy the current immutable object by setting a value for the
processArguments attribute. |
ImmutableProcessFactory |
withProcessConfig(de.flapdoodle.reverse.transitions.Start<ProcessConfig> value)
Copy the current immutable object by setting a value for the
processConfig attribute. |
ImmutableProcessFactory |
withProcessEnv(de.flapdoodle.reverse.Transition<ProcessEnv> value)
Copy the current immutable object by setting a value for the
processEnv attribute. |
ImmutableProcessFactory |
withProcessOutput(de.flapdoodle.reverse.Transition<ProcessOutput> value)
Copy the current immutable object by setting a value for the
processOutput attribute. |
ImmutableProcessFactory |
withProcessWorkingDir(de.flapdoodle.reverse.Transition<ProcessWorkingDir> value)
Copy the current immutable object by setting a value for the
processWorkingDir attribute. |
ImmutableProcessFactory |
withProgressListener(de.flapdoodle.reverse.Transition<ProgressListener> value)
Copy the current immutable object by setting a value for the
progressListener attribute. |
ImmutableProcessFactory |
withSupportConfig(de.flapdoodle.reverse.Transition<SupportConfig> value)
Copy the current immutable object by setting a value for the
supportConfig attribute. |
ImmutableProcessFactory |
withVersion(Version value)
Copy the current immutable object by setting a value for the
version attribute. |
transitions, walkerpublic Version version()
version in class ProcessFactoryversion attributeprotected de.flapdoodle.reverse.Transition<Name> name()
name in class ProcessFactoryname attributeprotected de.flapdoodle.reverse.Transition<TempDir> initTempDirectory()
initTempDirectory in class ProcessFactoryinitTempDirectory attributeprotected de.flapdoodle.reverse.Transition<ProcessWorkingDir> processWorkingDir()
processWorkingDir in class ProcessFactoryprocessWorkingDir attributeprotected de.flapdoodle.reverse.transitions.Start<ProcessConfig> processConfig()
processConfig in class ProcessFactoryprocessConfig attributeprotected de.flapdoodle.reverse.Transition<ProcessEnv> processEnv()
processEnv in class ProcessFactoryprocessEnv attributeprotected de.flapdoodle.reverse.Transition<ProcessArguments> processArguments()
processArguments in class ProcessFactoryprocessArguments attributeprotected de.flapdoodle.reverse.Transition<ProcessOutput> processOutput()
processOutput in class ProcessFactoryprocessOutput attributeprotected de.flapdoodle.reverse.Transition<ProgressListener> progressListener()
progressListener in class ProcessFactoryprogressListener attributeprotected de.flapdoodle.reverse.Transition<SupportConfig> supportConfig()
supportConfig in class ProcessFactorysupportConfig attributeprotected de.flapdoodle.reverse.Transition<PersistentDir> persistentBaseDir()
persistentBaseDir in class ProcessFactorypersistentBaseDir attributeprotected de.flapdoodle.reverse.Transition<DownloadCache> downloadCache()
downloadCache in class ProcessFactorydownloadCache attributeprotected de.flapdoodle.reverse.Transition<ExtractedFileSetStore> extractedFileSetStore()
extractedFileSetStore in class ProcessFactoryextractedFileSetStore attributeprotected de.flapdoodle.reverse.Transition<ExtractedFileSet> extractPackage()
extractPackage in class ProcessFactoryextractPackage attributeprotected de.flapdoodle.reverse.Transition<Archive> downloadPackage()
downloadPackage in class ProcessFactorydownloadPackage attributeprotected de.flapdoodle.reverse.Transition<Distribution> distribution()
distribution in class ProcessFactorydistribution attributeprotected Function<Distribution,Package> packageInformation()
packageInformation in class ProcessFactorypackageInformation attributeprotected Supplier<Collection<? extends de.flapdoodle.os.OS>> osList()
osList in class ProcessFactoryosList attributeprotected de.flapdoodle.reverse.Transition<ExecutedProcess> executer()
executer in class ProcessFactoryexecuter attributepublic final ImmutableProcessFactory withVersion(Version value)
version attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for versionthis objectpublic final ImmutableProcessFactory withName(de.flapdoodle.reverse.Transition<Name> value)
name attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableProcessFactory withInitTempDirectory(de.flapdoodle.reverse.Transition<TempDir> value)
initTempDirectory attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for initTempDirectorythis objectpublic final ImmutableProcessFactory withProcessWorkingDir(de.flapdoodle.reverse.Transition<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 ImmutableProcessFactory withProcessConfig(de.flapdoodle.reverse.transitions.Start<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 ImmutableProcessFactory withProcessEnv(de.flapdoodle.reverse.Transition<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 ImmutableProcessFactory withProcessArguments(de.flapdoodle.reverse.Transition<ProcessArguments> value)
processArguments attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for processArgumentsthis objectpublic final ImmutableProcessFactory withProcessOutput(de.flapdoodle.reverse.Transition<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 ImmutableProcessFactory withProgressListener(de.flapdoodle.reverse.Transition<ProgressListener> value)
progressListener attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for progressListenerthis objectpublic final ImmutableProcessFactory withSupportConfig(de.flapdoodle.reverse.Transition<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 ImmutableProcessFactory withPersistentBaseDir(de.flapdoodle.reverse.Transition<PersistentDir> value)
persistentBaseDir attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for persistentBaseDirthis objectpublic final ImmutableProcessFactory withDownloadCache(de.flapdoodle.reverse.Transition<DownloadCache> value)
downloadCache attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for downloadCachethis objectpublic final ImmutableProcessFactory withExtractedFileSetStore(de.flapdoodle.reverse.Transition<ExtractedFileSetStore> value)
extractedFileSetStore attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for extractedFileSetStorethis objectpublic final ImmutableProcessFactory withExtractPackage(de.flapdoodle.reverse.Transition<ExtractedFileSet> value)
extractPackage attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for extractPackagethis objectpublic final ImmutableProcessFactory withDownloadPackage(de.flapdoodle.reverse.Transition<Archive> value)
downloadPackage attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for downloadPackagethis objectpublic final ImmutableProcessFactory withDistribution(de.flapdoodle.reverse.Transition<Distribution> value)
distribution attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for distributionthis objectpublic final ImmutableProcessFactory withPackageInformation(Function<Distribution,Package> value)
packageInformation attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for packageInformationthis objectpublic final ImmutableProcessFactory withOsList(Supplier<Collection<? extends de.flapdoodle.os.OS>> value)
osList attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for osListthis objectpublic final ImmutableProcessFactory withExecuter(de.flapdoodle.reverse.Transition<ExecutedProcess> value)
executer attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for executerthis objectpublic boolean equals(Object another)
ImmutableProcessFactory that have equal attribute values.public int hashCode()
version, name, initTempDirectory, processWorkingDir, processConfig, processEnv, processArguments, processOutput, progressListener, supportConfig, persistentBaseDir, downloadCache, extractedFileSetStore, extractPackage, downloadPackage, distribution, packageInformation, osList, executer.public String toString()
ProcessFactory with attribute values.public static ImmutableProcessFactory copyOf(ProcessFactory instance)
ProcessFactory 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 ImmutableProcessFactory.Builder builder()
ImmutableProcessFactory.
ImmutableProcessFactory.builder()
.version(de.flapdoodle.embed.process.distribution.Version) // required version
.name(de.flapdoodle.reverse.Transition<Name>) // required name
.initTempDirectory(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.io.directories.TempDir>) // optional initTempDirectory
.processWorkingDir(de.flapdoodle.reverse.Transition<ProcessWorkingDir>) // optional processWorkingDir
.processConfig(de.flapdoodle.reverse.transitions.Start<de.flapdoodle.embed.process.types.ProcessConfig>) // optional processConfig
.processEnv(de.flapdoodle.reverse.Transition<ProcessEnv>) // optional processEnv
.processArguments(de.flapdoodle.reverse.Transition<ProcessArguments>) // required processArguments
.processOutput(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.io.ProcessOutput>) // optional processOutput
.progressListener(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.io.progress.ProgressListener>) // optional progressListener
.supportConfig(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.config.SupportConfig>) // optional supportConfig
.persistentBaseDir(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.io.directories.PersistentDir>) // required persistentBaseDir
.downloadCache(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.store.DownloadCache>) // optional downloadCache
.extractedFileSetStore(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.store.ExtractedFileSetStore>) // optional extractedFileSetStore
.extractPackage(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.archives.ExtractedFileSet>) // optional extractPackage
.downloadPackage(de.flapdoodle.reverse.Transition<Archive>) // optional downloadPackage
.distribution(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.distribution.Distribution>) // optional distribution
.packageInformation(function.Function<de.flapdoodle.embed.process.distribution.Distribution, de.flapdoodle.embed.process.config.store.Package>) // required packageInformation
.osList(function.Supplier<Collection<? extends de.flapdoodle.os.OS>>) // required osList
.executer(de.flapdoodle.reverse.Transition<de.flapdoodle.embed.process.types.ExecutedProcess>) // optional executer
.build();
Copyright © 2024. All rights reserved.