@webref table:method @brief Store an integer value in the specified row and column @param row ID number of the target row @param column ID number of the target column @param value value to assign @see Table#setFloat(int, int, float) @see Table#setString(int, int, String) @see Table#getInt(int, int)
(int row, int column, int value)
| 3099 | * @see Table#getStringColumn(String) |
| 3100 | */ |
| 3101 | public void setInt(int row, int column, int value) { |
| 3102 | if (columnTypes[column] == STRING) { |
| 3103 | setString(row, column, String.valueOf(value)); |
| 3104 | |
| 3105 | } else { |
| 3106 | ensureBounds(row, column); |
| 3107 | if (columnTypes[column] != INT && |
| 3108 | columnTypes[column] != CATEGORY) { |
| 3109 | throw new IllegalArgumentException("Column " + column + " is not an int column."); |
| 3110 | } |
| 3111 | int[] intData = (int[]) columns[column]; |
| 3112 | intData[row] = value; |
| 3113 | } |
| 3114 | } |
| 3115 | |
| 3116 | /** |
| 3117 | * @param columnName title of the target column |
no test coverage detected