@NotThreadSafe public static final class AndroidResourceDescriptionArg.Builder extends Object
AndroidResourceDescriptionArg
.
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 |
---|---|
AndroidResourceDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
AndroidResourceDescriptionArg.Builder |
addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements to
deps sortedSet. |
AndroidResourceDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
AndroidResourceDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
AndroidResourceDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
AndroidResourceDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
AndroidResourceDescriptionArg.Builder |
addDeps(BuildTarget... elements)
Adds elements to
deps sortedSet. |
AndroidResourceDescriptionArg.Builder |
addDeps(BuildTarget element)
Adds one element to
deps sortedSet. |
AndroidResourceDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
AndroidResourceDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
AndroidResourceDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
AndroidResourceDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
AndroidResourceDescriptionArg |
build()
Builds a new
AndroidResourceDescriptionArg . |
AndroidResourceDescriptionArg.Builder |
from(com.facebook.buck.android.AndroidResourceDescription.AbstractAndroidResourceDescriptionArg instance)
Copy abstract value type
AbstractAndroidResourceDescriptionArg instance into builder. |
AndroidResourceDescriptionArg.Builder |
from(AndroidResourceDescriptionArg instance)
Fill a builder with attribute values from the provided
AndroidResourceDescriptionArg instance. |
AndroidResourceDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
AndroidResourceDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
AndroidResourceDescriptionArg.Builder |
from(HasDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDeclaredDeps instance. |
AndroidResourceDescriptionArg.Builder |
setAssets(Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>> assets)
Initializes the optional value
assets to assets. |
AndroidResourceDescriptionArg.Builder |
setAssets(Optional<? extends Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>> assets)
Initializes the optional value
assets to assets. |
AndroidResourceDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
AndroidResourceDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
AndroidResourceDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
AndroidResourceDescriptionArg.Builder |
setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
deps sortedSet. |
AndroidResourceDescriptionArg.Builder |
setHasWhitelistedStrings(boolean hasWhitelistedStrings)
Initializes the value for the
hasWhitelistedStrings attribute. |
AndroidResourceDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
AndroidResourceDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
AndroidResourceDescriptionArg.Builder |
setManifest(Optional<? extends SourcePath> manifest)
Initializes the optional value
manifest to manifest. |
AndroidResourceDescriptionArg.Builder |
setManifest(SourcePath manifest)
Initializes the optional value
manifest to manifest. |
AndroidResourceDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
AndroidResourceDescriptionArg.Builder |
setPackage(Optional<String> getPackage)
Initializes the optional value
package to getPackage. |
AndroidResourceDescriptionArg.Builder |
setPackage(String getPackage)
Initializes the optional value
package to getPackage. |
AndroidResourceDescriptionArg.Builder |
setProjectAssets(Optional<? extends Path> projectAssets)
Initializes the optional value
projectAssets to projectAssets. |
AndroidResourceDescriptionArg.Builder |
setProjectAssets(Path projectAssets)
Initializes the optional value
projectAssets to projectAssets. |
AndroidResourceDescriptionArg.Builder |
setProjectRes(Optional<? extends Path> projectRes)
Initializes the optional value
projectRes to projectRes. |
AndroidResourceDescriptionArg.Builder |
setProjectRes(Path projectRes)
Initializes the optional value
projectRes to projectRes. |
AndroidResourceDescriptionArg.Builder |
setRes(Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>> res)
Initializes the optional value
res to res. |
AndroidResourceDescriptionArg.Builder |
setRes(Optional<? extends Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>> res)
Initializes the optional value
res to res. |
AndroidResourceDescriptionArg.Builder |
setResourceUnion(boolean resourceUnion)
Initializes the value for the
resourceUnion attribute. |
public final AndroidResourceDescriptionArg.Builder from(HasDeclaredDeps instance)
com.facebook.buck.core.description.arg.HasDeclaredDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder from(AndroidResourceDescriptionArg instance)
AndroidResourceDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder from(com.facebook.buck.android.AndroidResourceDescription.AbstractAndroidResourceDescriptionArg instance)
AbstractAndroidResourceDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.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 AndroidResourceDescriptionArg.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 AndroidResourceDescriptionArg.Builder setRes(Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>> res)
res
to res.res
- The value for resthis
builder for chained invocationpublic final AndroidResourceDescriptionArg.Builder setRes(Optional<? extends Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>> res)
res
to res.res
- The value for resthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setAssets(Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>> assets)
assets
to assets.assets
- The value for assetsthis
builder for chained invocationpublic final AndroidResourceDescriptionArg.Builder setAssets(Optional<? extends Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>> assets)
assets
to assets.assets
- The value for assetsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setProjectRes(Path projectRes)
projectRes
to projectRes.projectRes
- The value for projectResthis
builder for chained invocationpublic final AndroidResourceDescriptionArg.Builder setProjectRes(Optional<? extends Path> projectRes)
projectRes
to projectRes.projectRes
- The value for projectResthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setProjectAssets(Path projectAssets)
projectAssets
to projectAssets.projectAssets
- The value for projectAssetsthis
builder for chained invocationpublic final AndroidResourceDescriptionArg.Builder setProjectAssets(Optional<? extends Path> projectAssets)
projectAssets
to projectAssets.projectAssets
- The value for projectAssetsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setHasWhitelistedStrings(boolean hasWhitelistedStrings)
hasWhitelistedStrings
attribute.
If not set, this attribute will have a default value as returned by the initializer of hasWhitelistedStrings
.
hasWhitelistedStrings
- The value for hasWhitelistedStringsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setPackage(String getPackage)
package
to getPackage.getPackage
- The value for getPackagethis
builder for chained invocationpublic final AndroidResourceDescriptionArg.Builder setPackage(Optional<String> getPackage)
package
to getPackage.getPackage
- The value for getPackagethis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setManifest(SourcePath manifest)
manifest
to manifest.manifest
- The value for manifestthis
builder for chained invocationpublic final AndroidResourceDescriptionArg.Builder setManifest(Optional<? extends SourcePath> manifest)
manifest
to manifest.manifest
- The value for manifestthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setResourceUnion(boolean resourceUnion)
resourceUnion
attribute.
If not set, this attribute will have a default value as returned by the initializer of resourceUnion
.
resourceUnion
- The value for resourceUnionthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final AndroidResourceDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final AndroidResourceDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic AndroidResourceDescriptionArg build()
AndroidResourceDescriptionArg
.IllegalStateException
- if any required attributes are missing