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)
| 2273 | * @return index of a new or previously existing column |
| 2274 | */ |
| 2275 | public int checkColumnIndex(String title) { |
| 2276 | int index = getColumnIndex(title, false); |
| 2277 | if (index != -1) { |
| 2278 | return index; |
| 2279 | } |
| 2280 | addColumn(title); |
| 2281 | return getColumnCount() - 1; |
| 2282 | } |
| 2283 | |
| 2284 | |
| 2285 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected