java.lang.Object
io.github.astrapi69.file.csv.CsvBean
- All Implemented Interfaces:
Serializable
,Cloneable
Deprecated.
Use instead the class with the same name from module 'cvs-worker'. Note: will be
removed with next minor version
The `CsvBean` class represents a structured data model for CSV files. It includes headers, column
types, lines of data, and supports operations like cloning, equality comparison, and fluent
construction using the builder pattern.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.Builder class for constructing `CsvBean` objects. -
Constructor Summary
ConstructorsConstructorDescriptionCsvBean()
Deprecated.Default constructor.Deprecated.Constructs a new `CsvBean` object with specified headers, column types, editable types, and lines.CsvBean
(String[] columnTypes, String[] columnTypesEdit, String[] headers, Map<Integer, Integer> lineOrder, List<String[]> lines) Deprecated.Constructs a new `CsvBean` object with specified column types, editable types, headers, line order, and lines.Deprecated.Constructs a new `CsvBean` object with specified headers, column types, and lines. -
Method Summary
Modifier and TypeMethodDescriptionstatic CsvBean.CsvBeanBuilder
builder()
Deprecated.Creates a builder for constructing `CsvBean` objects.clone()
Deprecated.boolean
Deprecated.String[]
Deprecated.Gets the types of each column in the CSV.String[]
Deprecated.Gets the editable types of each column in the CSV.String[]
Deprecated.Gets the headers of the CSV.Deprecated.Gets the order of lines in the CSV.getLines()
Deprecated.Gets the lines of data in the CSV.int
hashCode()
Deprecated.void
setColumnTypes
(String[] columnTypes) Deprecated.Sets the types of each column in the CSV.void
setColumnTypesEdit
(String[] columnTypesEdit) Deprecated.Sets the editable types of each column in the CSV.void
setHeaders
(String[] headers) Deprecated.Sets the headers of the CSV.void
setLineOrder
(Map<Integer, Integer> lineOrder) Deprecated.Sets the order of lines in the CSV.void
Deprecated.Sets the lines of data in the CSV.Deprecated.Creates a builder initialized with the current `CsvBean` instance's properties.toString()
Deprecated.Returns a string representation of the `CsvBean` object, showing its current column types, editable types, headers, line order, and lines of data.
-
Constructor Details
-
CsvBean
public CsvBean()Deprecated.Default constructor. -
CsvBean
Deprecated.Constructs a new `CsvBean` object with specified headers, column types, and lines.- Parameters:
headers
- the headers of the CSVcolumnTypes
- the types of each columnlines
- the lines of data in the CSV
-
CsvBean
public CsvBean(String[] headers, String[] columnTypes, String[] columnTypesEdit, List<String[]> lines) Deprecated.Constructs a new `CsvBean` object with specified headers, column types, editable types, and lines.- Parameters:
headers
- the headers of the CSVcolumnTypes
- the types of each columncolumnTypesEdit
- the editable types of each columnlines
- the lines of data in the CSV
-
CsvBean
public CsvBean(String[] columnTypes, String[] columnTypesEdit, String[] headers, Map<Integer, Integer> lineOrder, List<String[]> lines) Deprecated.Constructs a new `CsvBean` object with specified column types, editable types, headers, line order, and lines.- Parameters:
columnTypes
- the types of each columncolumnTypesEdit
- the editable types of each columnheaders
- the headers of the CSVlineOrder
- the order of lines in the CSVlines
- the lines of data in the CSV
-
-
Method Details
-
builder
Deprecated.Creates a builder for constructing `CsvBean` objects.- Returns:
- a new `CsvBeanBuilder` instance
-
clone
Deprecated. -
equals
Deprecated. -
getColumnTypes
Deprecated.Gets the types of each column in the CSV.- Returns:
- an array representing the types of each column
-
setColumnTypes
Deprecated.Sets the types of each column in the CSV.- Parameters:
columnTypes
- an array representing the types of each column
-
getColumnTypesEdit
Deprecated.Gets the editable types of each column in the CSV.- Returns:
- an array representing the editable types of each column
-
setColumnTypesEdit
Deprecated.Sets the editable types of each column in the CSV.- Parameters:
columnTypesEdit
- an array representing the editable types of each column
-
getHeaders
Deprecated.Gets the headers of the CSV.- Returns:
- an array representing the headers of the CSV
-
setHeaders
Deprecated.Sets the headers of the CSV.- Parameters:
headers
- an array representing the headers of the CSV
-
getLineOrder
Deprecated.Gets the order of lines in the CSV.- Returns:
- a map representing the order of lines in the CSV
-
setLineOrder
Deprecated.Sets the order of lines in the CSV.- Parameters:
lineOrder
- a map representing the order of lines in the CSV
-
getLines
Deprecated.Gets the lines of data in the CSV.- Returns:
- a list containing arrays representing the lines of data in the CSV
-
setLines
Deprecated.Sets the lines of data in the CSV.- Parameters:
lines
- a list containing arrays representing the lines of data in the CSV
-
hashCode
public int hashCode()Deprecated. -
toBuilder
Deprecated.Creates a builder initialized with the current `CsvBean` instance's properties.- Returns:
- a new `CsvBeanBuilder` initialized with the current instance's properties
-
toString
Deprecated.Returns a string representation of the `CsvBean` object, showing its current column types, editable types, headers, line order, and lines of data.
-