@NotThreadSafe public static final class ConstraintValueArg.Builder extends Object
ConstraintValueArg
.
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 |
---|---|
ConstraintValueArg |
build()
Builds a new
ConstraintValueArg . |
ConstraintValueArg.Builder |
from(ConstraintValueArg instance)
Fill a builder with attribute values from the provided
ConstraintValueArg instance. |
ConstraintValueArg.Builder |
from(com.facebook.buck.core.rules.platform.ConstraintValueDescription.AbstractConstraintValueArg instance)
Copy abstract value type
AbstractConstraintValueArg instance into builder. |
ConstraintValueArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
ConstraintValueArg.Builder |
setConstraintSetting(UnconfiguredBuildTarget constraintSetting)
Initializes the value for the
constraintSetting attribute. |
ConstraintValueArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
public final ConstraintValueArg.Builder from(ConstraintValueArg instance)
ConstraintValueArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ConstraintValueArg.Builder from(com.facebook.buck.core.rules.platform.ConstraintValueDescription.AbstractConstraintValueArg instance)
AbstractConstraintValueArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ConstraintValueArg.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 ConstraintValueArg.Builder setConstraintSetting(UnconfiguredBuildTarget constraintSetting)
constraintSetting
attribute.constraintSetting
- The value for constraintSettingthis
builder for use in a chained invocationpublic final ConstraintValueArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic ConstraintValueArg build()
ConstraintValueArg
.IllegalStateException
- if any required attributes are missing