RankProbabilityTableModel extends AbstractTableModel { @Override public Class<?> getColumnClass(int column) { if (column == 0) { return String.class; } else { return Double.class; } } RankProbabilityTableModel(RankProbabilitySummary summary, boolean preferDescription);  RankProbabilityTableModel(RankProbabilitySummary summary); int getColumnCount(); int getRowCount(); @Override String getColumnName(int column); @Override Class<?> getColumnClass(int column); Object getValueAt(int rowIndex, int columnIndex);  }
@Test public void testColumnClass() { assertEquals(String.class, d_model.getColumnClass(0)); assertEquals(Double.class, d_model.getColumnClass(1)); assertEquals(Double.class, d_model.getColumnClass(2)); assertEquals(Double.class, d_model.getColumnClass(3)); }