Class Team

java.lang.Object
edu.ntnu.idatt1002.k1g4.Team

public class Team extends Object
The type Team.
  • Constructor Details

    • Team

      public Team(int id, String name, List members, boolean isCompeting)
      Instantiates a new Team.
      Parameters:
      id - the id of the team
      name - the name of the team
      members - the members on the team
      isCompeting - status of if the team is competing
  • Method Details

    • getId

      public int getId()
      Gets the team id.
      Returns:
      the team id
    • getName

      public String getName()
      Gets the team name.
      Returns:
      the team name
    • getMembers

      public List getMembers()
      Gets the team members.
      Returns:
      the team members
    • isCompeting

      public boolean isCompeting()
      Is competing boolean.
      Returns:
      the boolean
    • setCompeting

      public void setCompeting(boolean competing)
      Sets new status of if the team is competing.
      Parameters:
      competing - the new competing status
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object