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

Method setInt

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

@webref table:method @brief Store an integer 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#setFloat(int, int, float) @see Table#setString(int, int, String) @see Table#getInt(int, int)

(int row, int column, int value)

Source from the content-addressed store, hash-verified

3099 * @see Table#getStringColumn(String)
3100 */
3101 public void setInt(int row, int column, int value) {
3102 if (columnTypes[column] == STRING) {
3103 setString(row, column, String.valueOf(value));
3104
3105 } else {
3106 ensureBounds(row, column);
3107 if (columnTypes[column] != INT &&
3108 columnTypes[column] != CATEGORY) {
3109 throw new IllegalArgumentException("Column " + column + " is not an int column.");
3110 }
3111 int[] intData = (int[]) columns[column];
3112 intData[row] = value;
3113 }
3114 }
3115
3116 /**
3117 * @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