@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableDistributionPackage extends Object implements DistributionPackage
DistributionPackage.
Use the builder to create immutable instances:
ImmutableDistributionPackage.builder().
Use the static factory method to create immutable instances:
ImmutableDistributionPackage.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDistributionPackage.Builder
Builds instances of type
ImmutableDistributionPackage. |
| Modifier and Type | Method and Description |
|---|---|
String |
archivePath() |
ArchiveType |
archiveType() |
static ImmutableDistributionPackage.Builder |
builder()
Creates a builder for
ImmutableDistributionPackage. |
static ImmutableDistributionPackage |
copyOf(DistributionPackage instance)
Creates an immutable copy of a
DistributionPackage value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDistributionPackage that have equal attribute values. |
FileSet |
fileSet() |
int |
hashCode()
Computes a hash code from attributes:
archiveType, fileSet, archivePath. |
static ImmutableDistributionPackage |
of(ArchiveType archiveType,
FileSet fileSet,
String archivePath)
Construct a new immutable
DistributionPackage instance. |
String |
toString()
Prints the immutable value
DistributionPackage with attribute values. |
ImmutableDistributionPackage |
withArchivePath(String value)
Copy the current immutable object by setting a value for the
archivePath attribute. |
ImmutableDistributionPackage |
withArchiveType(ArchiveType value)
Copy the current immutable object by setting a value for the
archiveType attribute. |
ImmutableDistributionPackage |
withFileSet(FileSet value)
Copy the current immutable object by setting a value for the
fileSet attribute. |
public ArchiveType archiveType()
archiveType in interface DistributionPackagearchiveType attributepublic FileSet fileSet()
fileSet in interface DistributionPackagefileSet attributepublic String archivePath()
archivePath in interface DistributionPackagearchivePath attributepublic final ImmutableDistributionPackage withArchiveType(ArchiveType value)
archiveType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for archiveTypethis objectpublic final ImmutableDistributionPackage withFileSet(FileSet value)
fileSet attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for fileSetthis objectpublic final ImmutableDistributionPackage withArchivePath(String value)
archivePath attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for archivePaththis objectpublic boolean equals(Object another)
ImmutableDistributionPackage that have equal attribute values.public int hashCode()
archiveType, fileSet, archivePath.public String toString()
DistributionPackage with attribute values.public static ImmutableDistributionPackage of(ArchiveType archiveType, FileSet fileSet, String archivePath)
DistributionPackage instance.of in interface DistributionPackagearchiveType - The value for the archiveType attributefileSet - The value for the fileSet attributearchivePath - The value for the archivePath attributepublic static ImmutableDistributionPackage copyOf(DistributionPackage instance)
DistributionPackage 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 ImmutableDistributionPackage.Builder builder()
ImmutableDistributionPackage.
ImmutableDistributionPackage.builder()
.archiveType(de.flapdoodle.embed.process.distribution.ArchiveType) // required archiveType
.fileSet(de.flapdoodle.embed.process.config.store.FileSet) // required fileSet
.archivePath(String) // required archivePath
.build();
builder in interface DistributionPackageCopyright © 2020. All rights reserved.