/** * Returns an entry from a given column name as a String (possibly null). Throws an IllegalArgumentException if the name is not defined in * the header definition. Empty is returned as the empty String rather than null. * * @param column the column name of the entry, not null * @return the entry, can be null */ public String getString(final String column) { return _values[_headerDefinition.columnIndex(column)]; }
/** * Returns an entry from a given column name as a LocalDate (possibly null). Throws an IllegalArgumentException if the name is not defined * in the header definition. Throws a DateTimeParseException if the underlying data is not a date in ISO local date format (YYYY-MM-DD). * * @param column the column name of the entry, not null * @return the entry, can be null if the value is null or empty */ public LocalDate getLocalDate(final String column) { int index = _headerDefinition.columnIndex(column); return getLocalDate(index); }
/** * Returns an entry from a given column name as a Double (possibly null). Throws an IllegalArgumentException if the name is not defined in * the header definition. Throws a NumberFormatException if the underlying data cannot be parsed as a double precision floating point * number. * * @param column the column name of the entry, not null * @return the entry, can be null if the value is null or empty */ public Double getDouble(final String column) { int index = _headerDefinition.columnIndex(column); return getDouble(index); }