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

Method getInt

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

@webref table:method @brief Get an integer value from the specified row and column @param row ID number of the row to reference @param column ID number of the column to reference @see Table#getFloat(int, int) @see Table#getString(int, int) @see Table#getStringColumn(String) @see Table#setInt(int, in

(int row, int column)

Source from the content-addressed store, hash-verified

3061 * @see Table#setString(int, int, String)
3062 */
3063 public int getInt(int row, int column) {
3064 checkBounds(row, column);
3065 if (columnTypes[column] == INT ||
3066 columnTypes[column] == CATEGORY) {
3067 int[] intData = (int[]) columns[column];
3068 return intData[row];
3069 }
3070 String str = getString(row, column);
3071 return (str == null || str.equals(missingString)) ?
3072 missingInt : PApplet.parseInt(str, missingInt);
3073 }
3074
3075 /**
3076 * @param columnName title of the column to reference

Callers 5

getIntColumnMethod · 0.95
getIntRowMethod · 0.95
getStringMethod · 0.95
compareMethod · 0.95
createSubsetMethod · 0.95

Calls 5

checkBoundsMethod · 0.95
getStringMethod · 0.95
parseIntMethod · 0.95
getColumnIndexMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected