MCPcopy Index your code
hub / github.com/benfry/processing4 / setFloat

Method setFloat

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

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)

Source from the content-addressed store, hash-verified

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

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