@webref table:method @brief Store a float value in the specified row and column @param row ID number of the target row @param column ID number of the target column @param value value to assign @see Table#setInt(int, int, int) @see Table#setString(int, int, String) @see Table#getInt(int, int) @see Ta
(int row, int column, float value)
| 3280 | * @see Table#getStringColumn(String) |
| 3281 | */ |
| 3282 | public void setFloat(int row, int column, float value) { |
| 3283 | if (columnTypes[column] == STRING) { |
| 3284 | setString(row, column, String.valueOf(value)); |
| 3285 | |
| 3286 | } else { |
| 3287 | ensureBounds(row, column); |
| 3288 | if (columnTypes[column] != FLOAT) { |
| 3289 | throw new IllegalArgumentException("Column " + column + " is not a float column."); |
| 3290 | } |
| 3291 | float[] longData = (float[]) columns[column]; |
| 3292 | longData[row] = value; |
| 3293 | } |
| 3294 | } |
| 3295 | |
| 3296 | /** |
| 3297 | * @param columnName title of the target column |
no test coverage detected