Class Results
java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.backend.Results
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addMatchToResults
(Match match) This method adds a match to the matchResults map.This method retrieves the map of results.toString()
toString method for returning all Result information
-
Field Details
-
matchResults
-
-
Constructor Details
-
Results
public Results()Constructor for results
-
-
Method Details
-
addMatchToResults
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
This method retrieves the map of results.- Returns:
- Match results map
-
toString
toString method for returning all Result information
-