MCPcopy Index your code
hub / github.com/processing/processing / setFloat

Method setFloat

core/src/processing/data/Table.java:3282–3294  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

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

Callers 4

TableMethod · 0.95
loadBinaryMethod · 0.95
setRowMethod · 0.95
createSubsetMethod · 0.95

Calls 3

setStringMethod · 0.95
ensureBoundsMethod · 0.95
getColumnIndexMethod · 0.95

Tested by

no test coverage detected