MCPcopy Index your code
hub / github.com/benfry/processing4 / checkColumnIndex

Method checkColumnIndex

core/src/processing/data/Table.java:2275–2282  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 2

setColumnTypeMethod · 0.95
setStringMethod · 0.95

Calls 3

getColumnIndexMethod · 0.95
addColumnMethod · 0.95
getColumnCountMethod · 0.95

Tested by

no test coverage detected