public void setFloat(int column, float value) { table.setFloat(row, column, value); }
public void setFloat(String columnName, float value) { table.setFloat(row, columnName, value); }
public void setFloat(String columnName, float value) { table.setFloat(row, columnName, value); }
public void setFloat(int column, float value) { table.setFloat(row, column, value); }
/** * @param columnName title of the target column */ public void setFloat(int row, String columnName, float value) { setFloat(row, getColumnIndex(columnName), value); }
/** * @param columnName title of the target column */ public void setFloat(int row, String columnName, float value) { setFloat(row, getColumnIndex(columnName), value); }
break; case FLOAT: setFloat(row, col, input.readFloat()); break; case DOUBLE:
break; case FLOAT: setFloat(row, col, input.readFloat()); break; case DOUBLE:
case INT: setInt(row, col, rs.getInt(col+1)); break; 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 INT: setInt(row, col, rs.getInt(col+1)); break; 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 FLOAT: setFloat(row, col, source.getFloat(col)); break; case DOUBLE:
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; }
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 FLOAT: setFloat(row, col, source.getFloat(col)); break; case DOUBLE: