@Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        Rent room = rents.get(rowIndex);

        switch (columnIndex) {
            case -1:
                return room;
            case 0:
                return room.getRoom().getNumber();
            case 1:
                return room.getPerson().getName();
            case 2:
                return room.getStartDay();
            case 3:
                return room.getExpectedEndDay();
            case 4:
                return room.getCountOfGuestsInRoom();
            case 5:
                return checked[rowIndex];
            default:
                throw new IndexOutOfBoundsException("No data for column index " + columnIndex);
        }
    }