数据集扩展了 ArrayList。
Dataset<Pair<SRGB>> data = new Dataset<Pair<SRGB>>();
Statement stmt = this.conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while (rs.next()) {
data.add(new Pair<SRGB>(SRGB.create(rs.getString(2)),
SRGB.create(rs.getString(3)),
rs.getDouble(1),
rs.getInt(4)));
}
warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList