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

Method getInt

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

Retrieves an integer value from 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 Retrieves an integer value from the Table 's specified row and column @param row ID number o

(int row, int column)

Source from the content-addressed store, hash-verified

3112 * @see Table#setString(int, int, String)
3113 */
3114 public int getInt(int row, int column) {
3115 checkBounds(row, column);
3116 if (columnTypes[column] == INT ||
3117 columnTypes[column] == CATEGORY) {
3118 int[] intData = (int[]) columns[column];
3119 return intData[row];
3120 }
3121 String str = getString(row, column);
3122 return (str == null || str.equals(missingString)) ?
3123 missingInt : PApplet.parseInt(str, missingInt);
3124 }
3125
3126 /**
3127 * @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