Interface CsvHeaders


public interface CsvHeaders
The headers (column names) for CSV data.

Multiple headers with the same name are not supported, as each header is assumed to have a single, unique index.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list of CSV headers.
    int
    getColumnIndex(String columnName)
    Returns the index of the given column name.
  • Method Details

    • getAllHeaders

      List<String> getAllHeaders()
      Returns a list of CSV headers.
      Returns:
      a list of CSV headers
    • getColumnIndex

      int getColumnIndex(String columnName)
      Returns the index of the given column name.
      Parameters:
      columnName - the column name. Cannot be null or empty.
      Returns:
      the index of the specified column