public final class ImmutableDownloadPackage extends DownloadPackage
DownloadPackage.
Use the builder to create immutable instances:
ImmutableDownloadPackage.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDownloadPackage.Builder
Builds instances of type
ImmutableDownloadPackage. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDownloadPackage.Builder |
builder()
Creates a builder for
ImmutableDownloadPackage. |
static ImmutableDownloadPackage |
copyOf(DownloadPackage instance)
Creates an immutable copy of a
DownloadPackage value. |
de.flapdoodle.reverse.StateID<Archive> |
destination() |
protected de.flapdoodle.reverse.StateID<Package> |
distPackage() |
protected de.flapdoodle.reverse.StateID<Distribution> |
distribution() |
protected de.flapdoodle.reverse.StateID<DownloadCache> |
downloadCache() |
protected DownloadConfig |
downloadConfig() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDownloadPackage that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
transitionLabel, name, downloadCache, progressListener, downloadConfig, distribution, distPackage, tempDirectory, destination. |
protected de.flapdoodle.reverse.StateID<Name> |
name() |
protected de.flapdoodle.reverse.StateID<ProgressListener> |
progressListener() |
protected de.flapdoodle.reverse.StateID<TempDir> |
tempDirectory() |
String |
toString()
Prints the immutable value
DownloadPackage with attribute values. |
String |
transitionLabel() |
ImmutableDownloadPackage |
withDestination(de.flapdoodle.reverse.StateID<Archive> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableDownloadPackage |
withDistPackage(de.flapdoodle.reverse.StateID<Package> value)
Copy the current immutable object by setting a value for the
distPackage attribute. |
ImmutableDownloadPackage |
withDistribution(de.flapdoodle.reverse.StateID<Distribution> value)
Copy the current immutable object by setting a value for the
distribution attribute. |
ImmutableDownloadPackage |
withDownloadCache(de.flapdoodle.reverse.StateID<DownloadCache> value)
Copy the current immutable object by setting a value for the
downloadCache attribute. |
ImmutableDownloadPackage |
withDownloadConfig(DownloadConfig value)
Copy the current immutable object by setting a value for the
downloadConfig attribute. |
ImmutableDownloadPackage |
withName(de.flapdoodle.reverse.StateID<Name> value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableDownloadPackage |
withProgressListener(de.flapdoodle.reverse.StateID<ProgressListener> value)
Copy the current immutable object by setting a value for the
progressListener attribute. |
ImmutableDownloadPackage |
withTempDirectory(de.flapdoodle.reverse.StateID<TempDir> value)
Copy the current immutable object by setting a value for the
tempDirectory attribute. |
ImmutableDownloadPackage |
withTransitionLabel(String value)
Copy the current immutable object by setting a value for the
transitionLabel attribute. |
result, sources, withDefaultspublic String transitionLabel()
transitionLabel in interface de.flapdoodle.reverse.naming.HasLabeltransitionLabel in class DownloadPackagetransitionLabel attributeprotected de.flapdoodle.reverse.StateID<Name> name()
name in class DownloadPackagename attributeprotected de.flapdoodle.reverse.StateID<DownloadCache> downloadCache()
downloadCache in class DownloadPackagedownloadCache attributeprotected de.flapdoodle.reverse.StateID<ProgressListener> progressListener()
progressListener in class DownloadPackageprogressListener attributeprotected DownloadConfig downloadConfig()
downloadConfig in class DownloadPackagedownloadConfig attributeprotected de.flapdoodle.reverse.StateID<Distribution> distribution()
distribution in class DownloadPackagedistribution attributeprotected de.flapdoodle.reverse.StateID<Package> distPackage()
distPackage in class DownloadPackagedistPackage attributeprotected de.flapdoodle.reverse.StateID<TempDir> tempDirectory()
tempDirectory in class DownloadPackagetempDirectory attributepublic de.flapdoodle.reverse.StateID<Archive> destination()
destination in interface de.flapdoodle.reverse.Transition<Archive>destination in class DownloadPackagedestination attributepublic final ImmutableDownloadPackage 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 ImmutableDownloadPackage withName(de.flapdoodle.reverse.StateID<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 ImmutableDownloadPackage withDownloadCache(de.flapdoodle.reverse.StateID<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 ImmutableDownloadPackage withProgressListener(de.flapdoodle.reverse.StateID<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 ImmutableDownloadPackage withDownloadConfig(DownloadConfig value)
downloadConfig attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for downloadConfigthis objectpublic final ImmutableDownloadPackage withDistribution(de.flapdoodle.reverse.StateID<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 ImmutableDownloadPackage withDistPackage(de.flapdoodle.reverse.StateID<Package> value)
distPackage attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for distPackagethis objectpublic final ImmutableDownloadPackage withTempDirectory(de.flapdoodle.reverse.StateID<TempDir> value)
tempDirectory attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for tempDirectorythis objectpublic final ImmutableDownloadPackage withDestination(de.flapdoodle.reverse.StateID<Archive> 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 boolean equals(Object another)
ImmutableDownloadPackage that have equal attribute values.public int hashCode()
transitionLabel, name, downloadCache, progressListener, downloadConfig, distribution, distPackage, tempDirectory, destination.public String toString()
DownloadPackage with attribute values.public static ImmutableDownloadPackage copyOf(DownloadPackage instance)
DownloadPackage 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 ImmutableDownloadPackage.Builder builder()
ImmutableDownloadPackage.
ImmutableDownloadPackage.builder()
.transitionLabel(String) // optional transitionLabel
.name(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.Name>) // optional name
.downloadCache(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.store.DownloadCache>) // optional downloadCache
.progressListener(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.io.progress.ProgressListener>) // optional progressListener
.downloadConfig(de.flapdoodle.embed.process.config.DownloadConfig) // optional downloadConfig
.distribution(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.distribution.Distribution>) // optional distribution
.distPackage(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.config.store.Package>) // optional distPackage
.tempDirectory(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.io.directories.TempDir>) // optional tempDirectory
.destination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.Archive>) // optional destination
.build();
Copyright © 2022. All rights reserved.