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

Method getDouble

core/src/processing/data/Table.java:3390–3405  ·  view source on GitHub ↗
(int row, int column)

Source from the content-addressed store, hash-verified

3388
3389
3390 public double getDouble(int row, int column) {
3391 checkBounds(row, column);
3392 if (columnTypes[column] == DOUBLE) {
3393 double[] doubleData = (double[]) columns[column];
3394 return doubleData[row];
3395 }
3396 String str = getString(row, column);
3397 if (str == null || str.equals(missingString)) {
3398 return missingDouble;
3399 }
3400 try {
3401 return Double.parseDouble(str);
3402 } catch (NumberFormatException nfe) {
3403 return missingDouble;
3404 }
3405 }
3406
3407
3408 public double getDouble(int row, String columnName) {

Callers 5

getDoubleColumnMethod · 0.95
getDoubleRowMethod · 0.95
getStringMethod · 0.95
compareMethod · 0.95
createSubsetMethod · 0.95

Calls 4

checkBoundsMethod · 0.95
getStringMethod · 0.95
getColumnIndexMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected