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)
| 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 |
no test coverage detected