java.lang.Object
io.github.astrapi69.file.csv.CsvBean.CsvBeanBuilder
- Enclosing class:
- CsvBean
Builder class for constructing `CsvBean` objects.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs a new `CsvBean` object based on the current builder state.columnTypes
(String[] columnTypes) Sets the types of each column for the `CsvBean` object being built.columnTypesEdit
(String[] columnTypesEdit) Sets the editable types of each column for the `CsvBean` object being built.Sets the headers for the `CsvBean` object being built.Sets the line order for the `CsvBean` object being built.Sets the lines of data for the `CsvBean` object being built.toString()
Returns a string representation of the `CsvBeanBuilder` object, showing its current column types, editable types, headers, line order, and lines of data.
-
Method Details
-
build
Constructs a new `CsvBean` object based on the current builder state.- Returns:
- a new `CsvBean` object
-
columnTypes
Sets the types of each column for the `CsvBean` object being built.- Parameters:
columnTypes
- an array representing the types of each column- Returns:
- the current `CsvBeanBuilder` instance
-
columnTypesEdit
Sets the editable types of each column for the `CsvBean` object being built.- Parameters:
columnTypesEdit
- an array representing the editable types of each column- Returns:
- the current `CsvBeanBuilder` instance
-
headers
Sets the headers for the `CsvBean` object being built.- Parameters:
headers
- an array representing the headers of the CSV- Returns:
- the current `CsvBeanBuilder` instance
-
lineOrder
Sets the line order for the `CsvBean` object being built.- Parameters:
lineOrder
- a map representing the order of lines in the CSV- Returns:
- the current `CsvBeanBuilder` instance
-
lines
Sets the lines of data for the `CsvBean` object being built.- Parameters:
lines
- a list containing arrays representing the lines of data in the CSV- Returns:
- the current `CsvBeanBuilder` instance
-
toString
Returns a string representation of the `CsvBeanBuilder` object, showing its current column types, editable types, headers, line order, and lines of data.
-