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

Method setInt

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

Stores an integer 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 an integer value in the Table 's specified row and column @param row ID number of the targ

(int row, int column, int value)

Source from the content-addressed store, hash-verified

3154 * @see Table#getStringColumn(String)
3155 */
3156 public void setInt(int row, int column, int value) {
3157 if (columnTypes[column] == STRING) {
3158 setString(row, column, String.valueOf(value));
3159
3160 } else {
3161 ensureBounds(row, column);
3162 if (columnTypes[column] != INT &&
3163 columnTypes[column] != CATEGORY) {
3164 throw new IllegalArgumentException("Column " + column + " is not an int column.");
3165 }
3166 int[] intData = (int[]) columns[column];
3167 intData[row] = value;
3168 }
3169 }
3170
3171 /**
3172 * @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