Class Round
java.lang.Object
edu.ntnu.idatt1002.k2g05.models.rounds.Round
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MatchRound
,QualificationRound
A class that holds a round, a round is a collection of multiple games, a round could be f.eks "Semi-final" , "Final"
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Round
Constructor for making an instance of a round.- Parameters:
name
- of the round, can not be blank.
-
-
Method Details
-
getName
-
setName
Method for setting the name of the Round, name can not be blank ornull
- Parameters:
name
- to be set- Throws:
IllegalArgumentException
- if name is blankNullPointerException
- if name is null
-
toString
-
clear
public abstract void clear()Method for clearing the round of games.
-