Stores a float value in the Table 's specified row and column. The row is specified by its ID, while the column may be specified by either its ID or title. @webref table:method @webBrief Stores a float value in the Table 's specified row and column @param row ID number of the target row
(int row, int column, float value)
| 3339 | * @see Table#getStringColumn(String) |
| 3340 | */ |
| 3341 | public void setFloat(int row, int column, float value) { |
| 3342 | if (columnTypes[column] == STRING) { |
| 3343 | setString(row, column, String.valueOf(value)); |
| 3344 | |
| 3345 | } else { |
| 3346 | ensureBounds(row, column); |
| 3347 | if (columnTypes[column] != FLOAT) { |
| 3348 | throw new IllegalArgumentException("Column " + column + " is not a float column."); |
| 3349 | } |
| 3350 | float[] longData = (float[]) columns[column]; |
| 3351 | longData[row] = value; |
| 3352 | } |
| 3353 | } |
| 3354 | |
| 3355 | /** |
| 3356 | * @param columnName title of the target column |
no test coverage detected