Class Column

java.lang.Object
org.csveed.common.Column
All Implemented Interfaces:
Comparable<Column>
Direct Known Subclasses:
ColumnExcel

public class Column extends Object implements Comparable<Column>
The Class Column.
  • Field Details

    • FIRST_COLUMN_INDEX

      public static final int FIRST_COLUMN_INDEX
      The Constant FIRST_COLUMN_INDEX.
      See Also:
  • Constructor Details

    • Column

      public Column(String columnName)
      Instantiates a new column.
      Parameters:
      columnName - the column name
    • Column

      public Column()
      Instantiates a new column.
    • Column

      public Column(Column column)
      Instantiates a new column.
      Parameters:
      column - the column
    • Column

      public Column(int columnIndex)
      Instantiates a new column.
      Parameters:
      columnIndex - the column index
  • Method Details

    • setHeader

      public Column setHeader(Header header)
      Sets the header.
      Parameters:
      header - the header
      Returns:
      the column
    • setColumnIndex

      public void setColumnIndex(int columnIndex)
      Sets the column index.
      Parameters:
      columnIndex - the new column index
    • setColumnName

      public void setColumnName(String columnName)
      Sets the column name.
      Parameters:
      columnName - the new column name
    • setKey

      public void setKey(ColumnKey key)
      Sets the key.
      Parameters:
      key - the new key
    • getExcelColumn

      public String getExcelColumn()
      Gets the excel column.
      Returns:
      the excel column
    • getColumnIndex

      public int getColumnIndex()
      Gets the column index.
      Returns:
      the column index
    • getColumnName

      public String getColumnName()
      Gets the column name.
      Returns:
      the column name
    • nextColumn

      public Column nextColumn()
      Next column.
      Returns:
      the column
    • nextLine

      public Column nextLine()
      Next line.
      Returns:
      the column
    • getColumnText

      public String getColumnText()
      Gets the column text.
      Returns:
      the column text
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Column column)
      Specified by:
      compareTo in interface Comparable<Column>