@NotThreadSafe public static final class DTestDescriptionArg.Builder extends Object
DTestDescriptionArg
.
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 |
---|---|
DTestDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
DTestDescriptionArg.Builder |
addAllContacts(Iterable<String> elements)
Adds elements to
contacts sortedSet. |
DTestDescriptionArg.Builder |
addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements to
deps sortedSet. |
DTestDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
DTestDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
DTestDescriptionArg.Builder |
addAllLinkerFlags(Iterable<String> elements)
Adds elements to
linkerFlags list. |
DTestDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
DTestDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
DTestDescriptionArg.Builder |
addContacts(String... elements)
Adds elements to
contacts sortedSet. |
DTestDescriptionArg.Builder |
addContacts(String element)
Adds one element to
contacts sortedSet. |
DTestDescriptionArg.Builder |
addDeps(BuildTarget... elements)
Adds elements to
deps sortedSet. |
DTestDescriptionArg.Builder |
addDeps(BuildTarget element)
Adds one element to
deps sortedSet. |
DTestDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
DTestDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
DTestDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
DTestDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
DTestDescriptionArg.Builder |
addLinkerFlags(String... elements)
Adds elements to
linkerFlags list. |
DTestDescriptionArg.Builder |
addLinkerFlags(String element)
Adds one element to
linkerFlags list. |
DTestDescriptionArg |
build()
Builds a new
DTestDescriptionArg . |
DTestDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
DTestDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
DTestDescriptionArg.Builder |
from(com.facebook.buck.features.d.DTestDescription.AbstractDTestDescriptionArg instance)
Copy abstract value type
AbstractDTestDescriptionArg instance into builder. |
DTestDescriptionArg.Builder |
from(DTestDescriptionArg instance)
Fill a builder with attribute values from the provided
DTestDescriptionArg instance. |
DTestDescriptionArg.Builder |
from(HasContacts instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasContacts instance. |
DTestDescriptionArg.Builder |
from(HasDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDeclaredDeps instance. |
DTestDescriptionArg.Builder |
from(HasTestTimeout instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasTestTimeout instance. |
DTestDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
DTestDescriptionArg.Builder |
setContacts(Iterable<String> elements)
Sets or replaces all elements for
contacts sortedSet. |
DTestDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
DTestDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
DTestDescriptionArg.Builder |
setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
deps sortedSet. |
DTestDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
DTestDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
DTestDescriptionArg.Builder |
setLinkerFlags(Iterable<String> elements)
Sets or replaces all elements for
linkerFlags list. |
DTestDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
DTestDescriptionArg.Builder |
setSrcs(SourceSortedSet srcs)
Initializes the value for the
srcs attribute. |
DTestDescriptionArg.Builder |
setTestRuleTimeoutMs(long testRuleTimeoutMs)
Initializes the optional value
testRuleTimeoutMs to testRuleTimeoutMs. |
DTestDescriptionArg.Builder |
setTestRuleTimeoutMs(Optional<Long> testRuleTimeoutMs)
Initializes the optional value
testRuleTimeoutMs to testRuleTimeoutMs. |
public final DTestDescriptionArg.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 DTestDescriptionArg.Builder from(HasTestTimeout instance)
com.facebook.buck.core.description.arg.HasTestTimeout
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder from(DTestDescriptionArg instance)
DTestDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder from(com.facebook.buck.features.d.DTestDescription.AbstractDTestDescriptionArg instance)
AbstractDTestDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final DTestDescriptionArg.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 DTestDescriptionArg.Builder from(HasContacts instance)
com.facebook.buck.core.description.arg.HasContacts
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final DTestDescriptionArg.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 DTestDescriptionArg.Builder setSrcs(SourceSortedSet srcs)
srcs
attribute.srcs
- The value for srcsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addLinkerFlags(String element)
linkerFlags
list.element
- A linkerFlags elementthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addLinkerFlags(String... elements)
linkerFlags
list.elements
- An array of linkerFlags elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setLinkerFlags(Iterable<String> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addAllLinkerFlags(Iterable<String> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final DTestDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addContacts(String element)
contacts
sortedSet.element
- A contacts elementthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addContacts(String... elements)
contacts
sortedSet.elements
- An array of contacts elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setContacts(Iterable<String> elements)
contacts
sortedSet.elements
- An iterable of contacts elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addAllContacts(Iterable<String> elements)
contacts
sortedSet.elements
- An iterable of contacts elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final DTestDescriptionArg.Builder setTestRuleTimeoutMs(long testRuleTimeoutMs)
testRuleTimeoutMs
to testRuleTimeoutMs.testRuleTimeoutMs
- The value for testRuleTimeoutMsthis
builder for chained invocationpublic final DTestDescriptionArg.Builder setTestRuleTimeoutMs(Optional<Long> testRuleTimeoutMs)
testRuleTimeoutMs
to testRuleTimeoutMs.testRuleTimeoutMs
- The value for testRuleTimeoutMsthis
builder for use in a chained invocationpublic DTestDescriptionArg build()
DTestDescriptionArg
.IllegalStateException
- if any required attributes are missing