MCPcopy Index your code
hub / github.com/processing/processing / checkColumnIndex

Method checkColumnIndex

core/src/processing/data/Table.java:2244–2251  ·  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

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

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