java.lang.Object
org.csveed.common.Column
- All Implemented Interfaces:
Comparable<Column>
- Direct Known Subclasses:
ColumnExcel
The Class Column.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The Constant FIRST_COLUMN_INDEX. -
Constructor Summary
Constructors -
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
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
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
Sets the column name.- Parameters:
columnName
- the new column name
-
setKey
Sets the key.- Parameters:
key
- the new key
-
getExcelColumn
Gets the excel column.- Returns:
- the excel column
-
getColumnIndex
public int getColumnIndex()Gets the column index.- Returns:
- the column index
-
getColumnName
Gets the column name.- Returns:
- the column name
-
nextColumn
Next column.- Returns:
- the column
-
nextLine
Next line.- Returns:
- the column
-
getColumnText
Gets the column text.- Returns:
- the column text
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Column>
-