Interface CSV

All Known Implementing Classes:
ViewEvaluation

public interface CSV
Interface for values that can be converted to a CSV row. A row in comma separated value (CSV) tables consists of values, potentially quoted with double quotes, and a delimiter between each value. Multiple rows are delimited by new lines and can be generated using toCSV(java.util.stream.Stream<? extends org.variantsync.diffdetective.util.CSV>).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default delimiter for DiffDetective tables.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Convert this value into a CSV row using the DEFAULT_CSV_DELIMITER.
    toCSV(String delimiter)
    Convert this value into a CSV row using a custom CSV delimiter.
    static String
    toCSV(Collection<? extends CSV> collection)
    Convert a collection of CSV values into a CSV table.
    static String
    toCSV(Stream<? extends CSV> collection)
    Convert a collection of CSV values into a CSV table.
  • Field Details

    • DEFAULT_CSV_DELIMITER

      static final String DEFAULT_CSV_DELIMITER
      The default delimiter for DiffDetective tables.
      See Also:
  • Method Details

    • toCSV

      default String toCSV()
      Convert this value into a CSV row using the DEFAULT_CSV_DELIMITER.
    • toCSV

      String toCSV(String delimiter)
      Convert this value into a CSV row using a custom CSV delimiter.
    • toCSV

      static String toCSV(Collection<? extends CSV> collection)
      Convert a collection of CSV values into a CSV table. Each value will become a single row in the resulting table. As new line StringUtils.LINEBREAK is used.
    • toCSV

      static String toCSV(Stream<? extends CSV> collection)
      Convert a collection of CSV values into a CSV table. Each value will become a single row in the resulting table. As new line StringUtils.LINEBREAK is used.