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

Method getString

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

Retrieves a String value from the Table 's specified row and column. The row is specified by its ID, while the column may be specified by either its ID or title. @webref table:method @webBrief Retrieves a String value from the Table 's specified row and column @param row ID number of th

(int row, int column)

Source from the content-addressed store, hash-verified

3535 * @see Table#setString(int, int, String)
3536 */
3537 public String getString(int row, int column) {
3538 checkBounds(row, column);
3539 if (columnTypes[column] == STRING) {
3540 String[] stringData = (String[]) columns[column];
3541 return stringData[row];
3542 } else if (columnTypes[column] == CATEGORY) {
3543 int cat = getInt(row, column);
3544 if (cat == missingCategory) {
3545 return missingString;
3546 }
3547 return columnCategories[column].key(cat);
3548 } else if (columnTypes[column] == FLOAT) {
3549 if (Float.isNaN(getFloat(row, column))) {
3550 return null;
3551 }
3552 } else if (columnTypes[column] == DOUBLE) {
3553 if (Double.isNaN(getDouble(row, column))) {
3554 return null;
3555 }
3556 }
3557 return String.valueOf(Array.get(columns[column], row));
3558 }
3559
3560
3561 /**

Callers 15

writeTSVMethod · 0.95
writeCSVMethod · 0.95
writeHTMLMethod · 0.95
setColumnTypeMethod · 0.95
getIntMethod · 0.95
getLongMethod · 0.95
getFloatMethod · 0.95
getDoubleMethod · 0.95
getStringColumnMethod · 0.95
getStringRowMethod · 0.95
findRowIndexMethod · 0.95
findRowIndicesMethod · 0.95

Calls 7

checkBoundsMethod · 0.95
getIntMethod · 0.95
getFloatMethod · 0.95
getDoubleMethod · 0.95
getColumnIndexMethod · 0.95
getMethod · 0.65
keyMethod · 0.45

Tested by

no test coverage detected