public final class ImmutablePackageOfDistribution extends PackageOfDistribution
PackageOfDistribution.
Use the builder to create immutable instances:
ImmutablePackageOfDistribution.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePackageOfDistribution.Builder
Builds instances of type
ImmutablePackageOfDistribution. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePackageOfDistribution.Builder |
builder()
Creates a builder for
ImmutablePackageOfDistribution. |
static ImmutablePackageOfDistribution |
copyOf(PackageOfDistribution instance)
Creates an immutable copy of a
PackageOfDistribution value. |
de.flapdoodle.reverse.StateID<Package> |
destination() |
protected de.flapdoodle.reverse.StateID<Distribution> |
distribution() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePackageOfDistribution that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
transitionLabel, packageResolver, distribution, destination. |
protected PackageResolver |
packageResolver() |
String |
toString()
Prints the immutable value
PackageOfDistribution with attribute values. |
String |
transitionLabel() |
ImmutablePackageOfDistribution |
withDestination(de.flapdoodle.reverse.StateID<Package> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutablePackageOfDistribution |
withDistribution(de.flapdoodle.reverse.StateID<Distribution> value)
Copy the current immutable object by setting a value for the
distribution attribute. |
ImmutablePackageOfDistribution |
withPackageResolver(PackageResolver value)
Copy the current immutable object by setting a value for the
packageResolver attribute. |
ImmutablePackageOfDistribution |
withTransitionLabel(String value)
Copy the current immutable object by setting a value for the
transitionLabel attribute. |
result, sources, withpublic String transitionLabel()
transitionLabel in interface de.flapdoodle.reverse.naming.HasLabeltransitionLabel in class PackageOfDistributiontransitionLabel attributeprotected PackageResolver packageResolver()
packageResolver in class PackageOfDistributionpackageResolver attributeprotected de.flapdoodle.reverse.StateID<Distribution> distribution()
distribution in class PackageOfDistributiondistribution attributepublic de.flapdoodle.reverse.StateID<Package> destination()
destination in interface de.flapdoodle.reverse.Transition<Package>destination in class PackageOfDistributiondestination attributepublic final ImmutablePackageOfDistribution 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 ImmutablePackageOfDistribution withPackageResolver(PackageResolver value)
packageResolver attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for packageResolverthis objectpublic final ImmutablePackageOfDistribution 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 ImmutablePackageOfDistribution withDestination(de.flapdoodle.reverse.StateID<Package> 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)
ImmutablePackageOfDistribution that have equal attribute values.public int hashCode()
transitionLabel, packageResolver, distribution, destination.public String toString()
PackageOfDistribution with attribute values.public static ImmutablePackageOfDistribution copyOf(PackageOfDistribution instance)
PackageOfDistribution 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 ImmutablePackageOfDistribution.Builder builder()
ImmutablePackageOfDistribution.
ImmutablePackageOfDistribution.builder()
.transitionLabel(String) // optional transitionLabel
.packageResolver(de.flapdoodle.embed.process.distribution.PackageResolver) // required packageResolver
.distribution(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.distribution.Distribution>) // optional distribution
.destination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.config.store.Package>) // optional destination
.build();
Copyright © 2025. All rights reserved.