@NotThreadSafe public static final class ApplePackageDescriptionArg.Builder extends Object
ApplePackageDescriptionArg
.
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 |
---|---|
ApplePackageDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
ApplePackageDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
ApplePackageDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
ApplePackageDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
ApplePackageDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
ApplePackageDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
ApplePackageDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
ApplePackageDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
ApplePackageDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
ApplePackageDescriptionArg |
build()
Builds a new
ApplePackageDescriptionArg . |
ApplePackageDescriptionArg.Builder |
from(com.facebook.buck.apple.ApplePackageDescription.AbstractApplePackageDescriptionArg instance)
Copy abstract value type
AbstractApplePackageDescriptionArg instance into builder. |
ApplePackageDescriptionArg.Builder |
from(ApplePackageDescriptionArg instance)
Fill a builder with attribute values from the provided
ApplePackageDescriptionArg instance. |
ApplePackageDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
ApplePackageDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
ApplePackageDescriptionArg.Builder |
from(HasDefaultPlatform instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDefaultPlatform instance. |
ApplePackageDescriptionArg.Builder |
setBundle(BuildTarget bundle)
Initializes the value for the
bundle attribute. |
ApplePackageDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
ApplePackageDescriptionArg.Builder |
setDefaultPlatform(Flavor defaultPlatform)
Initializes the optional value
defaultPlatform to defaultPlatform. |
ApplePackageDescriptionArg.Builder |
setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
Initializes the optional value
defaultPlatform to defaultPlatform. |
ApplePackageDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
ApplePackageDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
ApplePackageDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
ApplePackageDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
ApplePackageDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
ApplePackageDescriptionArg.Builder |
setNeedAndroidTools(boolean needAndroidTools)
Initializes the value for the
needAndroidTools attribute. |
public final ApplePackageDescriptionArg.Builder from(ApplePackageDescriptionArg instance)
ApplePackageDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder from(com.facebook.buck.apple.ApplePackageDescription.AbstractApplePackageDescriptionArg instance)
AbstractApplePackageDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder from(HasDefaultPlatform instance)
com.facebook.buck.core.description.arg.HasDefaultPlatform
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder from(BuildRuleArg instance)
com.facebook.buck.core.description.arg.BuildRuleArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder from(ConstructorArg instance)
com.facebook.buck.core.description.arg.ConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setBundle(BuildTarget bundle)
bundle
attribute.bundle
- The value for bundlethis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setNeedAndroidTools(boolean needAndroidTools)
needAndroidTools
attribute.
If not set, this attribute will have a default value as returned by the initializer of needAndroidTools
.
needAndroidTools
- The value for needAndroidToolsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final ApplePackageDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final ApplePackageDescriptionArg.Builder setDefaultPlatform(Flavor defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for chained invocationpublic final ApplePackageDescriptionArg.Builder setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for use in a chained invocationpublic ApplePackageDescriptionArg build()
ApplePackageDescriptionArg
.IllegalStateException
- if any required attributes are missing