public static final class ImmutablePlatformMatchRules.Builder extends Object
ImmutablePlatformMatchRules.
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 |
|---|---|
ImmutablePlatformMatchRules.Builder |
addAllRules(Iterable<? extends PlatformMatchRule> elements)
Adds elements to
rules list. |
ImmutablePlatformMatchRules.Builder |
addRules(PlatformMatchRule... elements)
Adds elements to
rules list. |
ImmutablePlatformMatchRules.Builder |
addRules(PlatformMatchRule element)
Adds one element to
rules list. |
ImmutablePlatformMatchRules |
build()
Builds a new
ImmutablePlatformMatchRules. |
ImmutablePlatformMatchRules.Builder |
from(PlatformMatchRules instance)
Fill a builder with attribute values from the provided
PlatformMatchRules instance. |
ImmutablePlatformMatchRules.Builder |
rules(Iterable<? extends PlatformMatchRule> elements)
Sets or replaces all elements for
rules list. |
public final ImmutablePlatformMatchRules.Builder from(PlatformMatchRules instance)
PlatformMatchRules instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutablePlatformMatchRules.Builder addRules(PlatformMatchRule element)
rules list.element - A rules elementthis builder for use in a chained invocationpublic final ImmutablePlatformMatchRules.Builder addRules(PlatformMatchRule... elements)
rules list.elements - An array of rules elementsthis builder for use in a chained invocationpublic final ImmutablePlatformMatchRules.Builder rules(Iterable<? extends PlatformMatchRule> elements)
rules list.elements - An iterable of rules elementsthis builder for use in a chained invocationpublic final ImmutablePlatformMatchRules.Builder addAllRules(Iterable<? extends PlatformMatchRule> elements)
rules list.elements - An iterable of rules elementsthis builder for use in a chained invocationpublic ImmutablePlatformMatchRules build()
ImmutablePlatformMatchRules.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.