Class CSVGenerator
java.lang.Object
com.decs.application.utils.csvFile.CSVGenerator
CSV Generator Class
This class handles the generation of CSV files.
- Version:
- 1.0
- Author:
- Bruno Guiomar
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateCSVFile(ArrayList<Generation> list, String filename) Generates a CSV file from a list of Generation objectsstatic StringConverts a list of Generation objects to the textual CSV format
-
Field Details
-
GENERATION_CSV_HEADER
- See Also:
-
-
Constructor Details
-
CSVGenerator
private CSVGenerator()Class Private ConstructorThis class cannot be instantiated.
-
-
Method Details
-
generation2CSVFormat
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
Generates a CSV file from a list of Generation objects- Parameters:
list- List of Generation objectsfilename- Name of the output file
-