Same as getColumnIndex(), but creates the column if it doesn't exist. Named this way to not conflict with checkColumn(), an internal function used to ensure that a columns exists, and also to denote that it returns an int for the column index. @param title column title @return index of a new or prev
(String title)
| 2242 | * @return index of a new or previously existing column |
| 2243 | */ |
| 2244 | public int checkColumnIndex(String title) { |
| 2245 | int index = getColumnIndex(title, false); |
| 2246 | if (index != -1) { |
| 2247 | return index; |
| 2248 | } |
| 2249 | addColumn(title); |
| 2250 | return getColumnCount() - 1; |
| 2251 | } |
| 2252 | |
| 2253 | |
| 2254 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected