public final class ImmutablePlatformMatchRule extends Object implements PlatformMatchRule
PlatformMatchRule.
Use the builder to create immutable instances:
ImmutablePlatformMatchRule.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePlatformMatchRule.Builder
Builds instances of type
ImmutablePlatformMatchRule. |
static interface |
ImmutablePlatformMatchRule.BuildFinal |
static interface |
ImmutablePlatformMatchRule.FinderBuildStage |
static interface |
ImmutablePlatformMatchRule.MatchBuildStage |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePlatformMatchRule.MatchBuildStage |
builder()
Creates a builder for
ImmutablePlatformMatchRule. |
static ImmutablePlatformMatchRule |
copyOf(PlatformMatchRule instance)
Creates an immutable copy of a
PlatformMatchRule value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePlatformMatchRule that have equal attribute values. |
PackageFinder |
finder() |
int |
hashCode()
Computes a hash code from attributes:
match, finder. |
DistributionMatch |
match() |
String |
toString()
Prints the immutable value
PlatformMatchRule with attribute values. |
ImmutablePlatformMatchRule |
withFinder(PackageFinder value)
Copy the current immutable object by setting a value for the
finder attribute. |
ImmutablePlatformMatchRule |
withMatch(DistributionMatch value)
Copy the current immutable object by setting a value for the
match attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitofpublic DistributionMatch match()
match in interface PlatformMatchRulematch attributepublic PackageFinder finder()
finder in interface PlatformMatchRulefinder attributepublic final ImmutablePlatformMatchRule withMatch(DistributionMatch value)
match attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for matchthis objectpublic final ImmutablePlatformMatchRule withFinder(PackageFinder value)
finder attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for finderthis objectpublic boolean equals(Object another)
ImmutablePlatformMatchRule that have equal attribute values.public int hashCode()
match, finder.public String toString()
PlatformMatchRule with attribute values.public static ImmutablePlatformMatchRule copyOf(PlatformMatchRule instance)
PlatformMatchRule 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 ImmutablePlatformMatchRule.MatchBuildStage builder()
ImmutablePlatformMatchRule.
ImmutablePlatformMatchRule.builder()
.match(de.flapdoodle.embed.mongo.packageresolver.DistributionMatch) // required match
.finder(de.flapdoodle.embed.mongo.packageresolver.PackageFinder) // required finder
.build();
builder in interface PlatformMatchRuleCopyright © 2021. All rights reserved.