Package edu.ntnu.idatt1002.k1g4
Class Team
java.lang.Object
edu.ntnu.idatt1002.k1g4.Team
The type Team.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getId()
Gets the team id.Gets the team members.getName()
Gets the team name.int
hashCode()
boolean
Is competing boolean.void
setCompeting
(boolean competing) Sets new status of if the team is competing.toString()
-
Constructor Details
-
Team
Instantiates a new Team.- Parameters:
id
- the id of the teamname
- the name of the teammembers
- the members on the teamisCompeting
- status of if the team is competing
-
-
Method Details
-
getId
public int getId()Gets the team id.- Returns:
- the team id
-
getName
Gets the team name.- Returns:
- the team name
-
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
-
equals
-
hashCode
public int hashCode()
-