MCPcopy Create free account
hub / github.com/PCGen/pcgen / getColumnIndex

Method getColumnIndex

code/src/java/pcgen/cdom/format/table/DataTable.java:278–290  ·  view source on GitHub ↗
(String string)

Source from the content-addressed store, hash-verified

276 }
277
278 private int getColumnIndex(String string)
279 {
280 int columnNumber = 0;
281 for (TableColumn column : columns)
282 {
283 if (column.getName().equals(string))
284 {
285 return columnNumber;
286 }
287 columnNumber++;
288 }
289 return -1;
290 }
291
292 /**
293 * Returns the value in this DataTable for the row with the lookup value valid (via

Callers 2

isColumnMethod · 0.95
lookupMethod · 0.95

Calls 2

equalsMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected