Class CSVGenerator

java.lang.Object
com.decs.application.utils.csvFile.CSVGenerator

public class CSVGenerator extends Object
CSV Generator Class

This class handles the generation of CSV files.

Version:
1.0
Author:
Bruno Guiomar
  • Field Details

  • Constructor Details

    • CSVGenerator

      private CSVGenerator()
      Class Private Constructor

      This class cannot be instantiated.

  • Method Details

    • generation2CSVFormat

      public static String generation2CSVFormat(ArrayList<Generation> list)
      Converts a list of Generation objects to the textual CSV format
      Parameters:
      list - List of Generation objects
      Returns:
      Textual representation following the CSV format
    • generateCSVFile

      public static void generateCSVFile(ArrayList<Generation> list, String filename)
      Generates a CSV file from a list of Generation objects
      Parameters:
      list - List of Generation objects
      filename - Name of the output file