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

Method getString

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

Get a String value from the table. If the row is longer than the table @webref table:method @brief Get an String value from the specified row and column @param row ID number of the row to reference @param column ID number of the column to reference @see Table#getInt(int, int) @see Table#getFloat(in

(int row, int column)

Source from the content-addressed store, hash-verified

3474 * @see Table#setString(int, int, String)
3475 */
3476 public String getString(int row, int column) {
3477 checkBounds(row, column);
3478 if (columnTypes[column] == STRING) {
3479 String[] stringData = (String[]) columns[column];
3480 return stringData[row];
3481 } else if (columnTypes[column] == CATEGORY) {
3482 int cat = getInt(row, column);
3483 if (cat == missingCategory) {
3484 return missingString;
3485 }
3486 return columnCategories[column].key(cat);
3487 } else if (columnTypes[column] == FLOAT) {
3488 if (Float.isNaN(getFloat(row, column))) {
3489 return null;
3490 }
3491 } else if (columnTypes[column] == DOUBLE) {
3492 if (Double.isNaN(getFloat(row, column))) {
3493 return null;
3494 }
3495 }
3496 return String.valueOf(Array.get(columns[column], row));
3497 }
3498
3499
3500 /**

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 6

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

Tested by

no test coverage detected