public void setDouble(int column, double value) { table.setDouble(row, column, value); }
public void setDouble(String columnName, double value) { table.setDouble(row, columnName, value); }
public void setDouble(String columnName, double value) { table.setDouble(row, columnName, value); }
public void setDouble(int column, double value) { table.setDouble(row, column, value); }
public void setDouble(int row, String columnName, double value) { setDouble(row, getColumnIndex(columnName), value); }
public void setDouble(int row, String columnName, double value) { setDouble(row, getColumnIndex(columnName), value); }
break; case DOUBLE: setDouble(row, col, input.readDouble()); break; case CATEGORY:
break; case DOUBLE: setDouble(row, col, input.readDouble()); break; case CATEGORY:
case LONG: setLong(row, col, rs.getLong(col+1)); break; case FLOAT: setFloat(row, col, rs.getFloat(col+1)); break; case DOUBLE: setDouble(row, col, rs.getDouble(col+1)); break; default: throw new IllegalArgumentException("column type " + columnTypes[col] + " not supported.");
case LONG: setLong(row, col, rs.getLong(col+1)); break; case FLOAT: setFloat(row, col, rs.getFloat(col+1)); break; case DOUBLE: setDouble(row, col, rs.getDouble(col+1)); break; default: throw new IllegalArgumentException("column type " + columnTypes[col] + " not supported.");
break; case DOUBLE: setDouble(row, col, source.getDouble(col)); break; case STRING:
protected Table createSubset(int[] rowSubset) { Table newbie = new Table(); newbie.setColumnTitles(columnTitles); // also sets columns.length newbie.columnTypes = columnTypes; newbie.setRowCount(rowSubset.length); for (int i = 0; i < rowSubset.length; i++) { int row = rowSubset[i]; for (int col = 0; col < columns.length; col++) { switch (columnTypes[col]) { case STRING: newbie.setString(i, col, getString(row, col)); break; case INT: newbie.setInt(i, col, getInt(row, col)); break; case LONG: newbie.setLong(i, col, getLong(row, col)); break; case FLOAT: newbie.setFloat(i, col, getFloat(row, col)); break; case DOUBLE: newbie.setDouble(i, col, getDouble(row, col)); break; } } } return newbie; }
break; case DOUBLE: setDouble(row, col, source.getDouble(col)); break; case STRING:
protected Table createSubset(int[] rowSubset) { Table newbie = new Table(); newbie.setColumnTitles(columnTitles); // also sets columns.length newbie.columnTypes = columnTypes; newbie.setRowCount(rowSubset.length); for (int i = 0; i < rowSubset.length; i++) { int row = rowSubset[i]; for (int col = 0; col < columns.length; col++) { switch (columnTypes[col]) { case STRING: newbie.setString(i, col, getString(row, col)); break; case INT: newbie.setInt(i, col, getInt(row, col)); break; case LONG: newbie.setLong(i, col, getLong(row, col)); break; case FLOAT: newbie.setFloat(i, col, getFloat(row, col)); break; case DOUBLE: newbie.setDouble(i, col, getDouble(row, col)); break; } } } return newbie; }