java.lang.Object
io.github.astrapi69.file.csv.CsvBean
All Implemented Interfaces:
Serializable, Cloneable

@Deprecated public class CsvBean extends Object implements 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:
  • Constructor Details

    • CsvBean

      public CsvBean()
      Deprecated.
      Default constructor.
    • CsvBean

      public CsvBean(String[] headers, String[] columnTypes, List<String[]> lines)
      Deprecated.
      Constructs a new `CsvBean` object with specified headers, column types, and lines.
      Parameters:
      headers - the headers of the CSV
      columnTypes - the types of each column
      lines - 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 CSV
      columnTypes - the types of each column
      columnTypesEdit - the editable types of each column
      lines - 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 column
      columnTypesEdit - the editable types of each column
      headers - the headers of the CSV
      lineOrder - the order of lines in the CSV
      lines - the lines of data in the CSV
  • Method Details

    • builder

      public static CsvBean.CsvBeanBuilder builder()
      Deprecated.
      Creates a builder for constructing `CsvBean` objects.
      Returns:
      a new `CsvBeanBuilder` instance
    • clone

      public Object clone()
      Deprecated.
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • getColumnTypes

      public String[] getColumnTypes()
      Deprecated.
      Gets the types of each column in the CSV.
      Returns:
      an array representing the types of each column
    • setColumnTypes

      public void setColumnTypes(String[] columnTypes)
      Deprecated.
      Sets the types of each column in the CSV.
      Parameters:
      columnTypes - an array representing the types of each column
    • getColumnTypesEdit

      public String[] getColumnTypesEdit()
      Deprecated.
      Gets the editable types of each column in the CSV.
      Returns:
      an array representing the editable types of each column
    • setColumnTypesEdit

      public void setColumnTypesEdit(String[] columnTypesEdit)
      Deprecated.
      Sets the editable types of each column in the CSV.
      Parameters:
      columnTypesEdit - an array representing the editable types of each column
    • getHeaders

      public String[] getHeaders()
      Deprecated.
      Gets the headers of the CSV.
      Returns:
      an array representing the headers of the CSV
    • setHeaders

      public void setHeaders(String[] headers)
      Deprecated.
      Sets the headers of the CSV.
      Parameters:
      headers - an array representing the headers of the CSV
    • getLineOrder

      public Map<Integer,Integer> getLineOrder()
      Deprecated.
      Gets the order of lines in the CSV.
      Returns:
      a map representing the order of lines in the CSV
    • setLineOrder

      public void setLineOrder(Map<Integer,Integer> lineOrder)
      Deprecated.
      Sets the order of lines in the CSV.
      Parameters:
      lineOrder - a map representing the order of lines in the CSV
    • getLines

      public List<String[]> getLines()
      Deprecated.
      Gets the lines of data in the CSV.
      Returns:
      a list containing arrays representing the lines of data in the CSV
    • setLines

      public void setLines(List<String[]> lines)
      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.
      Overrides:
      hashCode in class Object
    • toBuilder

      public CsvBean.CsvBeanBuilder 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

      public String toString()
      Deprecated.
      Returns a string representation of the `CsvBean` object, showing its current column types, editable types, headers, line order, and lines of data.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the `CsvBean` object