class TeamStates {

    public TeamStates setStateForTeam(int teamNb, TeamState state) {
        ImmutableMap.Builder<Integer, TeamState> builder = ImmutableMap.builder();
        teamNbToState.forEach((myTeamNb, myState) -> {
            if (teamNb != myTeamNb) {
                builder.put(myTeamNb, myState);
            }
        });
        builder.put(teamNb, state);
        return new TeamStates(builder.build());
    }

    public  TeamStates();
    @JsonCreator private  TeamStates(ImmutableMap<Integer, TeamState> teamNbToState);

}