Package edu.wisc.game.util
Class CsvData.BasicLineEntry
java.lang.Object
edu.wisc.game.util.CsvData.BasicLineEntry
- All Implemented Interfaces:
CsvData.LineEntry
- Enclosing class:
CsvData
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Requires the equality of the strings in all fieldsgetCol
(int j) getColByName
(CsvData.BasicLineEntry header, String name, String defVal) Picks the value from this line's column with the specified column name.getColInt
(int j) getKey()
Same as getCol(0)int
nCol()
toString()
-
Method Details
-
nCol
public int nCol() -
getKey
Same as getCol(0)- Specified by:
getKey
in interfaceCsvData.LineEntry
- Returns:
- the leftmost column
-
getCol
- Parameters:
j
- zero-based column index
-
getColInt
-
getColByName
Picks the value from this line's column with the specified column name.- Parameters:
header
- This is where the column names arename
- The desired column namedefVal
- The value to return if the header has no column with the desired name, or if this line is too short and does not have that many columns
-
equals
Requires the equality of the strings in all fields -
toString
-