public static final class ImmutablePlatformMatchRule.Builder extends Object implements ImmutablePlatformMatchRule.MatchBuildStage, ImmutablePlatformMatchRule.FinderBuildStage, ImmutablePlatformMatchRule.BuildFinal
ImmutablePlatformMatchRule.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutablePlatformMatchRule |
build()
Builds a new
ImmutablePlatformMatchRule. |
ImmutablePlatformMatchRule.Builder |
finder(PackageFinder finder)
Initializes the value for the
finder attribute. |
ImmutablePlatformMatchRule.Builder |
match(DistributionMatch match)
Initializes the value for the
match attribute. |
public final ImmutablePlatformMatchRule.Builder match(DistributionMatch match)
match attribute.match in interface ImmutablePlatformMatchRule.MatchBuildStagematch - The value for matchthis builder for use in a chained invocationpublic final ImmutablePlatformMatchRule.Builder finder(PackageFinder finder)
finder attribute.finder in interface ImmutablePlatformMatchRule.FinderBuildStagefinder - The value for finderthis builder for use in a chained invocationpublic ImmutablePlatformMatchRule build()
ImmutablePlatformMatchRule.build in interface ImmutablePlatformMatchRule.BuildFinalIllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.