Example #1
0
  /**
   * Update positionReport based on the new player performance
   *
   * @param pp
   */
  private void updatePositionDetails(PlayerPerformance pp) {
    PositionReport report = (PositionReport) positionReports.get("" + pp.getPositionCode());

    if (report == null) {
      report = new PositionReport(pp);
      positionReports.put("" + pp.getPositionCode(), report);
    }

    report.addPerformance(pp);
  }