java.lang.Object
org.csveed.common.Column
- All Implemented Interfaces:
Comparable<Column>
- Direct Known Subclasses:
ColumnExcel
The Class Column.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The Constant FIRST_COLUMN_INDEX. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
Gets the column index.Gets the column name.Gets the column text.Gets the excel column.int
hashCode()
Next column.nextLine()
Next line.void
setColumnIndex
(int columnIndex) Sets the column index.void
setColumnName
(String columnName) Sets the column name.Sets the header.void
Sets the key.toString()
-
Field Details
-
FIRST_COLUMN_INDEX
public static final int FIRST_COLUMN_INDEXThe Constant FIRST_COLUMN_INDEX.- See Also:
-
-
Constructor Details
-
Column
Instantiates a new column.- Parameters:
columnName
- the column name
-
Column
public Column()Instantiates a new column. -
Column
-
Column
public Column(int columnIndex) Instantiates a new column.- Parameters:
columnIndex
- the column index
-
-
Method Details
-
setHeader
-
setColumnIndex
public void setColumnIndex(int columnIndex) Sets the column index.- Parameters:
columnIndex
- the new column index
-
setColumnName
Sets the column name.- Parameters:
columnName
- the new column name
-
setKey
-
getExcelColumn
-
getColumnIndex
public int getColumnIndex()Gets the column index.- Returns:
- the column index
-
getColumnName
-
nextColumn
-
nextLine
-
getColumnText
-
equals
-
hashCode
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Column>
-