Uses of Class
edu.ntnu.idatt1002.k1g4.Match
Package
Description
-
Uses of Match in edu.ntnu.idatt1002.k1g4
Modifier and TypeMethodDescriptionDivision.getEqualMatch
(Match match) Helper method to get the match that is equal to the object that is provided This is to solve the problems with compositionModifier and TypeMethodDescriptionboolean
Add a match to the list of matches.boolean
Cup.addMatchInDivision
(Division division, Match match) Finds the correct division and adds a match to the division.boolean
Match.fieldOccupied
(Match match) Checks if field is occupied by a matchDivision.getEqualMatch
(Match match) Helper method to get the match that is equal to the object that is provided This is to solve the problems with compositionboolean
Division.removeMatch
(Match match) Remove a match from the list of matches.boolean
Cup.removeMatchInDivision
(Division division, Match match) Finds the correct division and adds a match to the division.boolean
Match.teamsOccupied
(Match match) checks if team is occupied by matchModifier and TypeMethodDescriptionvoid
Division.setMatches
(ArrayList<Match> matches) Sets matches in a division. -
Uses of Match in edu.ntnu.idatt1002.k1g4.client
Modifier and TypeMethodDescriptionstatic Match
Model.getCurrentMatch()
Returns the match that is currently selectedModifier and TypeMethodDescriptionstatic void
Model.setCurrentMatch
(Match newMatch) Selects a new match as the current one -
Uses of Match in edu.ntnu.idatt1002.k1g4.dao
Modifier and TypeMethodDescriptionMatchDAO.getMatchesByCup
(int cupId) Gets matches in a cup.MatchDAO.getMatchesByDivision
(int divisionId) Gets matches in a division.Modifier and TypeMethodDescriptionvoid
Method to add a match to the database.void
MatchDAO.updateMatch
(Match match) Method to update match data.