java.lang.Object
edu.ntnu.idatt1002.k2g05.models.rounds.Round
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MatchRound, QualificationRound

public abstract class Round extends Object implements Serializable
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 Details

    • Round

      public Round(String name)
      Constructor for making an instance of a round.
      Parameters:
      name - of the round, can not be blank.
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
      Method for setting the name of the Round, name can not be blank or null
      Parameters:
      name - to be set
      Throws:
      IllegalArgumentException - if name is blank
      NullPointerException - if name is null
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clear

      public abstract void clear()
      Method for clearing the round of games.