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