(int[] rowSubset)
| 4686 | |
| 4687 | // TODO naming/whether to include |
| 4688 | protected Table createSubset(int[] rowSubset) { |
| 4689 | Table newbie = new Table(); |
| 4690 | newbie.setColumnTitles(columnTitles); // also sets columns.length |
| 4691 | newbie.columnTypes = columnTypes; |
| 4692 | newbie.setRowCount(rowSubset.length); |
| 4693 | |
| 4694 | for (int i = 0; i < rowSubset.length; i++) { |
| 4695 | int row = rowSubset[i]; |
| 4696 | for (int col = 0; col < columns.length; col++) { |
| 4697 | switch (columnTypes[col]) { |
| 4698 | case STRING: newbie.setString(i, col, getString(row, col)); break; |
| 4699 | case INT: newbie.setInt(i, col, getInt(row, col)); break; |
| 4700 | case LONG: newbie.setLong(i, col, getLong(row, col)); break; |
| 4701 | case FLOAT: newbie.setFloat(i, col, getFloat(row, col)); break; |
| 4702 | case DOUBLE: newbie.setDouble(i, col, getDouble(row, col)); break; |
| 4703 | } |
| 4704 | } |
| 4705 | } |
| 4706 | return newbie; |
| 4707 | } |
| 4708 | |
| 4709 | |
| 4710 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
nothing calls this directly
no test coverage detected