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