Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This class implements a data structure for handling of CSV-files.
Overview about methods
CSVFile(path : string, seperator : char)
compiles the CSV-file in the inner data structure.
CSVFile (file : File, seperator : char)
CSVFile (seperator : char)
compile (row : string, seperator : char) : string
compiles row in its columns.
isPunctuation (ch : char) : boolean
check whether ch is a punctuation character.
getElementString(row : int, column : int) : string
returns the specified element.
getElementDouble(row : int, column : int) : double
returns the specified element as double.
addRow(row : string) : void
adds a row to the inner data structure.
without writing into the CSV-file.
commit() : void
writes the added data into CSV-file.
commit(path : String) : void
commit(file : File ) : void
findRow(key : string) : ArrayList
returns the searched row otherwise null.
contains(key : string) : boolean
returns true if a row contains 'key' otherwise false.
getColumn(column : int) : ArrayList
returns the specified column as ArrayList.
getColumn(key : string) : ArrayList
removeRow(key : string) : void
purpose removes the specified row at the inner data structure.
removeRow(column : int) : void
updateFile() : void
overwrites the CSV-file with the current inner data structure.
removed rows are remove in the CSV-file, too.
updateFile(file : File) : void
getNumberOfRows() : int
returns the number of rows in CSV-File
it counts only rows that in the table.