@Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        StockMarketYear currentYear = market.getYearOffset(rowIndex);
        switch (columnIndex) {
            case 0: return currentYear.year();
            case 1: return currentYear.startingBalance();
            case 2: return currentYear.startingCostBasis();
            case 3: return currentYear.totalSold();
            case 4: return currentYear.growth();
            case 5: return currentYear.endingBalance();
            default: throw new UnreachableCodeException();
        }
    }