java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.backend.Results
All Implemented Interfaces:
Serializable

public class Results extends Object implements Serializable
This class creates a structure for the results of the matches. The match results are stored using a Map.
Author:
Gruppe 6
See Also:
  • Field Details

  • Constructor Details

    • Results

      public Results()
      Constructor for results
  • Method Details

    • addMatchToResults

      public boolean addMatchToResults(Match match)
      This method adds a match to the matchResults map.
      Parameters:
      match - Match to be added
      Returns:
      Status on whether the match was successfully added, true if yes, else false
    • getMatchResults

      public Map<Integer,Match> getMatchResults()
      This method retrieves the map of results.
      Returns:
      Match results map
    • toString

      public String toString()
      toString method for returning all Result information
      Overrides:
      toString in class Object
      Returns:
      all result information as a String