Class ImmutablePersonDemographicsCSV.Builder

java.lang.Object
io.github.ai4ci.output.ImmutablePersonDemographicsCSV.Builder
Enclosing class:
ImmutablePersonDemographicsCSV

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

    • from

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder from(CommonCSV.Execution instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.CommonCSV.Execution instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder from(PersonDemographicsCSV instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.PersonDemographicsCSV instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder from(CommonCSV.Model instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.CommonCSV.Model instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setModelName

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setModelName(String modelName)
      Initializes the value for the modelName attribute.
      Parameters:
      modelName - The value for modelName
      Returns:
      this builder for use in a chained invocation
    • setExperimentName

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setExperimentName(String experimentName)
      Initializes the value for the experimentName attribute.
      Parameters:
      experimentName - The value for experimentName
      Returns:
      this builder for use in a chained invocation
    • setModelReplica

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setModelReplica(int modelReplica)
      Initializes the value for the modelReplica attribute.
      Parameters:
      modelReplica - The value for modelReplica
      Returns:
      this builder for use in a chained invocation
    • setExperimentReplica

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setExperimentReplica(int experimentReplica)
      Initializes the value for the experimentReplica attribute.
      Parameters:
      experimentReplica - The value for experimentReplica
      Returns:
      this builder for use in a chained invocation
    • setId

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setId(int id)
      Initializes the value for the id attribute.
      Parameters:
      id - The value for id
      Returns:
      this builder for use in a chained invocation
    • setAge

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setAge(double age)
      Initializes the value for the age attribute.
      Parameters:
      age - The value for age
      Returns:
      this builder for use in a chained invocation
    • setMobilityBaseline

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setMobilityBaseline(Double mobilityBaseline)
      Initializes the value for the mobilityBaseline attribute.
      Parameters:
      mobilityBaseline - The value for mobilityBaseline
      Returns:
      this builder for use in a chained invocation
    • setAppUseProbability

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setAppUseProbability(Double appUseProbability)
      Initializes the value for the appUseProbability attribute.
      Parameters:
      appUseProbability - The value for appUseProbability
      Returns:
      this builder for use in a chained invocation
    • setComplianceBaseline

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setComplianceBaseline(Double complianceBaseline)
      Initializes the value for the complianceBaseline attribute.
      Parameters:
      complianceBaseline - The value for complianceBaseline
      Returns:
      this builder for use in a chained invocation
    • setHilbertX

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setHilbertX(long hilbertX)
      Initializes the value for the hilbertX attribute.
      Parameters:
      hilbertX - The value for hilbertX
      Returns:
      this builder for use in a chained invocation
    • setHilbertY

      @CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setHilbertY(long hilbertY)
      Initializes the value for the hilbertY attribute.
      Parameters:
      hilbertY - The value for hilbertY
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of PersonDemographicsCSV
      Throws:
      IllegalStateException - if any required attributes are missing