Interface RowBuilder


public interface RowBuilder
Builds CSV Rows.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds and returns the row.
    setValue(int index, Object value)
    Sets a value on the row at the column specified by its index.
    setValueByName(String columnName, Object value)
    Sets a value on the row at the column specified by its name.
  • Method Details

    • setValue

      RowBuilder setValue(int index, Object value)
      Sets a value on the row at the column specified by its index.
      Parameters:
      index - the index at which to set the value. Cannot be negative.
      value - the value to add; the instance must be a type defined by CsvValueType
      Returns:
      the current builder
    • setValueByName

      RowBuilder setValueByName(String columnName, Object value)
      Sets a value on the row at the column specified by its name.
      Parameters:
      columnName - the name of the column in which to set the value. Cannot be null or empty.
      value - the value to add; the instance must be a type defined by CsvValueType
      Returns:
      the current builder
    • build

      Row build()
      Builds and returns the row.

      You may continue to use the builder after this is called, but any previously added values are cleared out.

      Returns:
      the built Row