@NotThreadSafe public static final class NdkLibraryDescriptionArg.Builder extends Object
NdkLibraryDescriptionArg
.
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 |
---|---|
NdkLibraryDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
NdkLibraryDescriptionArg.Builder |
addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements to
deps sortedSet. |
NdkLibraryDescriptionArg.Builder |
addAllFlags(Iterable<? extends StringWithMacros> elements)
Adds elements to
flags list. |
NdkLibraryDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
NdkLibraryDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
NdkLibraryDescriptionArg.Builder |
addAllSrcs(Iterable<? extends SourcePath> elements)
Adds elements to
srcs sortedSet. |
NdkLibraryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
NdkLibraryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
NdkLibraryDescriptionArg.Builder |
addDeps(BuildTarget... elements)
Adds elements to
deps sortedSet. |
NdkLibraryDescriptionArg.Builder |
addDeps(BuildTarget element)
Adds one element to
deps sortedSet. |
NdkLibraryDescriptionArg.Builder |
addFlags(StringWithMacros... elements)
Adds elements to
flags list. |
NdkLibraryDescriptionArg.Builder |
addFlags(StringWithMacros element)
Adds one element to
flags list. |
NdkLibraryDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
NdkLibraryDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
NdkLibraryDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
NdkLibraryDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
NdkLibraryDescriptionArg.Builder |
addSrcs(SourcePath... elements)
Adds elements to
srcs sortedSet. |
NdkLibraryDescriptionArg.Builder |
addSrcs(SourcePath element)
Adds one element to
srcs sortedSet. |
NdkLibraryDescriptionArg |
build()
Builds a new
NdkLibraryDescriptionArg . |
NdkLibraryDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
NdkLibraryDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
NdkLibraryDescriptionArg.Builder |
from(HasDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDeclaredDeps instance. |
NdkLibraryDescriptionArg.Builder |
from(HasSrcs instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasSrcs instance. |
NdkLibraryDescriptionArg.Builder |
from(com.facebook.buck.android.NdkLibraryDescription.AbstractNdkLibraryDescriptionArg instance)
Copy abstract value type
AbstractNdkLibraryDescriptionArg instance into builder. |
NdkLibraryDescriptionArg.Builder |
from(NdkLibraryDescriptionArg instance)
Fill a builder with attribute values from the provided
NdkLibraryDescriptionArg instance. |
NdkLibraryDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
NdkLibraryDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
NdkLibraryDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
NdkLibraryDescriptionArg.Builder |
setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
deps sortedSet. |
NdkLibraryDescriptionArg.Builder |
setFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements for
flags list. |
NdkLibraryDescriptionArg.Builder |
setIsAsset(boolean isAsset)
Initializes the value for the
isAsset attribute. |
NdkLibraryDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
NdkLibraryDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
NdkLibraryDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
NdkLibraryDescriptionArg.Builder |
setSrcs(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
srcs sortedSet. |
public final NdkLibraryDescriptionArg.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 NdkLibraryDescriptionArg.Builder from(NdkLibraryDescriptionArg instance)
NdkLibraryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder from(com.facebook.buck.android.NdkLibraryDescription.AbstractNdkLibraryDescriptionArg instance)
AbstractNdkLibraryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.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 NdkLibraryDescriptionArg.Builder from(HasSrcs instance)
com.facebook.buck.core.description.arg.HasSrcs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.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 NdkLibraryDescriptionArg.Builder addFlags(StringWithMacros element)
flags
list.element
- A flags elementthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addFlags(StringWithMacros... elements)
flags
list.elements
- An array of flags elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setFlags(Iterable<? extends StringWithMacros> elements)
flags
list.elements
- An iterable of flags elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addAllFlags(Iterable<? extends StringWithMacros> elements)
flags
list.elements
- An iterable of flags elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setIsAsset(boolean isAsset)
isAsset
attribute.
If not set, this attribute will have a default value as returned by the initializer of isAsset
.
isAsset
- The value for isAssetthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final NdkLibraryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addSrcs(SourcePath element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final NdkLibraryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic NdkLibraryDescriptionArg build()
NdkLibraryDescriptionArg
.IllegalStateException
- if any required attributes are missing