Class ImmutableContactCSV.Builder

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

@NotThreadSafe public static final class ImmutableContactCSV.Builder extends Object
Builds instances of type ImmutableContactCSV. 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 ImmutableContactCSV.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 ImmutableContactCSV.Builder from(ContactCSV instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.ContactCSV instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

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

      @CanIgnoreReturnValue public final ImmutableContactCSV.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 ImmutableContactCSV.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 ImmutableContactCSV.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 ImmutableContactCSV.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 ImmutableContactCSV.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
    • setTime

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

      @CanIgnoreReturnValue public final ImmutableContactCSV.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
    • setContactId

      @CanIgnoreReturnValue public final ImmutableContactCSV.Builder setContactId(int contactId)
      Initializes the value for the contactId attribute.
      Parameters:
      contactId - The value for contactId
      Returns:
      this builder for use in a chained invocation
    • setDetected

      @CanIgnoreReturnValue public final ImmutableContactCSV.Builder setDetected(boolean detected)
      Initializes the value for the detected attribute.
      Parameters:
      detected - The value for detected
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableContactCSV build()
      Builds a new ImmutableContactCSV.
      Returns:
      An immutable instance of ContactCSV
      Throws:
      IllegalStateException - if any required attributes are missing