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