@Test public void testJsonDeserialize_DefaultObject() throws Exception { TeamStates teamStates = Serialization.getJsonMapper().readValue("{}", TeamStates.class); assertThat(teamStates.getTeamNbToState(), equalTo(Collections.EMPTY_MAP)); }
@JsonValue public ImmutableMap<Integer, TeamState> getTeamNbToState() { return teamNbToState; }
TeamStates { @JsonValue public ImmutableMap<Integer, TeamState> getTeamNbToState() { return teamNbToState; } }
TeamStates { @JsonValue public ImmutableMap<Integer, TeamState> getTeamNbToState() { return teamNbToState; } TeamStates(); @JsonCreator private  TeamStates(ImmutableMap<Integer, TeamState> teamNbToState); }
TeamStates { @JsonValue public ImmutableMap<Integer, TeamState> getTeamNbToState() { return teamNbToState; } TeamStates(); @JsonCreator private  TeamStates(ImmutableMap<Integer, TeamState> teamNbToState); Optional<TeamState> getStateForTeam(int teamNb); TeamStates setStateForTeam(int teamNb, TeamState state); int getNbLapsForTeam(int teamNb); @JsonValue ImmutableMap<Integer, TeamState> getTeamNbToState(); }
TeamStates { @JsonValue public ImmutableMap<Integer, TeamState> getTeamNbToState() { return teamNbToState; } TeamStates(); @JsonCreator private  TeamStates(ImmutableMap<Integer, TeamState> teamNbToState); Optional<TeamState> getStateForTeam(int teamNb); TeamStates setStateForTeam(int teamNb, TeamState state); int getNbLapsForTeam(int teamNb); @JsonValue ImmutableMap<Integer, TeamState> getTeamNbToState();  }