Class AppleAssetCatalogsCompilationOptions.Builder

  • Enclosing class:
    AppleAssetCatalogsCompilationOptions

    @NotThreadSafe
    public static final class AppleAssetCatalogsCompilationOptions.Builder
    extends Object
    Builds instances of type AppleAssetCatalogsCompilationOptions. 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.

    • Method Detail

      • from

        public final AppleAssetCatalogsCompilationOptions.Builder from​(AppleAssetCatalogsCompilationOptions instance)
        Fill a builder with attribute values from the provided AppleAssetCatalogsCompilationOptions instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • setNotices

        public final AppleAssetCatalogsCompilationOptions.Builder setNotices​(boolean notices)
        Initializes the value for the notices attribute.

        If not set, this attribute will have a default value as returned by the initializer of notices.

        Parameters:
        notices - The value for notices
        Returns:
        this builder for use in a chained invocation
      • setWarnings

        public final AppleAssetCatalogsCompilationOptions.Builder setWarnings​(boolean warnings)
        Initializes the value for the warnings attribute.

        If not set, this attribute will have a default value as returned by the initializer of warnings.

        Parameters:
        warnings - The value for warnings
        Returns:
        this builder for use in a chained invocation
      • setErrors

        public final AppleAssetCatalogsCompilationOptions.Builder setErrors​(boolean errors)
        Initializes the value for the errors attribute.

        If not set, this attribute will have a default value as returned by the initializer of errors.

        Parameters:
        errors - The value for errors
        Returns:
        this builder for use in a chained invocation
      • setCompressPngs

        public final AppleAssetCatalogsCompilationOptions.Builder setCompressPngs​(boolean compressPngs)
        Initializes the value for the compressPngs attribute.

        If not set, this attribute will have a default value as returned by the initializer of compressPngs.

        Parameters:
        compressPngs - The value for compressPngs
        Returns:
        this builder for use in a chained invocation
      • setOptimization

        public final AppleAssetCatalogsCompilationOptions.Builder setOptimization​(com.facebook.buck.apple.AbstractAppleAssetCatalogsCompilationOptions.Optimization optimization)
        Initializes the value for the optimization attribute.

        If not set, this attribute will have a default value as returned by the initializer of optimization.

        Parameters:
        optimization - The value for optimization
        Returns:
        this builder for use in a chained invocation
      • setOutputFormat

        public final AppleAssetCatalogsCompilationOptions.Builder setOutputFormat​(com.facebook.buck.apple.AbstractAppleAssetCatalogsCompilationOptions.OutputFormat outputFormat)
        Initializes the value for the outputFormat attribute.

        If not set, this attribute will have a default value as returned by the initializer of outputFormat.

        Parameters:
        outputFormat - The value for outputFormat
        Returns:
        this builder for use in a chained invocation