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)
| 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 | /** |
no test coverage detected