@NotThreadSafe public static final class AndroidPlatformArg.Builder extends Object
AndroidPlatformArg
.
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 |
---|---|
AndroidPlatformArg |
build()
Builds a new
AndroidPlatformArg . |
AndroidPlatformArg.Builder |
from(AndroidPlatformArg instance)
Fill a builder with attribute values from the provided
AndroidPlatformArg instance. |
AndroidPlatformArg.Builder |
from(com.facebook.buck.android.toolchain.platform.AndroidPlatformDescription.AbstractAndroidPlatformArg instance)
Copy abstract value type
AbstractAndroidPlatformArg instance into builder. |
AndroidPlatformArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
AndroidPlatformArg.Builder |
putAllNativePlatforms(Map<? extends TargetCpuType,? extends UnconfiguredBuildTarget> entries)
Put all mappings from the specified map as entries to
nativePlatforms map. |
AndroidPlatformArg.Builder |
putNativePlatforms(Map.Entry<? extends TargetCpuType,? extends UnconfiguredBuildTarget> entry)
Put one entry to the
nativePlatforms map. |
AndroidPlatformArg.Builder |
putNativePlatforms(TargetCpuType key,
UnconfiguredBuildTarget value)
Put one entry to the
nativePlatforms map. |
AndroidPlatformArg.Builder |
setBasePlatform(UnconfiguredBuildTarget basePlatform)
Initializes the value for the
basePlatform attribute. |
AndroidPlatformArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
AndroidPlatformArg.Builder |
setNativePlatforms(Map<? extends TargetCpuType,? extends UnconfiguredBuildTarget> entries)
Sets or replaces all mappings from the specified map as entries for the
nativePlatforms map. |
public final AndroidPlatformArg.Builder from(AndroidPlatformArg instance)
AndroidPlatformArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidPlatformArg.Builder from(com.facebook.buck.android.toolchain.platform.AndroidPlatformDescription.AbstractAndroidPlatformArg instance)
AbstractAndroidPlatformArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidPlatformArg.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 AndroidPlatformArg.Builder setBasePlatform(UnconfiguredBuildTarget basePlatform)
basePlatform
attribute.basePlatform
- The value for basePlatformthis
builder for use in a chained invocationpublic final AndroidPlatformArg.Builder putNativePlatforms(TargetCpuType key, UnconfiguredBuildTarget value)
nativePlatforms
map.key
- The key in the nativePlatforms mapvalue
- The associated value in the nativePlatforms mapthis
builder for use in a chained invocationpublic final AndroidPlatformArg.Builder putNativePlatforms(Map.Entry<? extends TargetCpuType,? extends UnconfiguredBuildTarget> entry)
nativePlatforms
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final AndroidPlatformArg.Builder setNativePlatforms(Map<? extends TargetCpuType,? extends UnconfiguredBuildTarget> entries)
nativePlatforms
map. Nulls are not permittedentries
- The entries that will be added to the nativePlatforms mapthis
builder for use in a chained invocationpublic final AndroidPlatformArg.Builder putAllNativePlatforms(Map<? extends TargetCpuType,? extends UnconfiguredBuildTarget> entries)
nativePlatforms
map. Nulls are not permittedentries
- The entries that will be added to the nativePlatforms mapthis
builder for use in a chained invocationpublic final AndroidPlatformArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic AndroidPlatformArg build()
AndroidPlatformArg
.IllegalStateException
- if any required attributes are missing