| Modifier and Type | Method and Description |
|---|---|
Team |
Player.getTeam()
Returns the team of this user
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Team> |
User.getTeams()
Returns the user that belongs to this user.
|
ArrayList<Team> |
Competition.getTeams()
Returns the teams of the competition
|
Collection<Team> |
Headquarter.getTeams()
Returns the teams that belongs to this headquarters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
User.addTeam(Team team)
Adds a team to this user
|
void |
Competition.addTeam(Team team)
Adds a team to the Competition
|
void |
Headquarter.addTeam(Team team)
Adds a team to this headquarters
|
boolean |
User.hasOwner(Team team)
Checks if the team already has an owner
|
void |
User.internalAddTeam(Team team)
Adds a team directly to the teams collection of this user if the team does
not already belongs to this user
|
void |
User.internalRemoveTeam(Team team)
Removes a team directly to this teams collection of this user if the team
does not already belongs to this headquarters
|
boolean |
User.ownsTeam(Team team)
Checks if a team belongs to this user
|
boolean |
Headquarter.ownsTeam(Team team)
Checks if a team belongs to this headquarters
|
void |
User.removeTeam(Team team)
Removes a team from this user
|
void |
Competition.removeTeam(Team team)
Removes a team to the Competition
|
void |
Headquarter.removeTeam(Team team)
Removes a team from this headquarters
|
void |
Player.setTeam(Team team)
Sets the team of this user
|
| Modifier and Type | Method and Description |
|---|---|
void |
Competition.setTeams(ArrayList<Team> teams)
Sets the teams of the competition
|
| Constructor and Description |
|---|
Headquarter(String name,
String description,
String address,
String locality,
String province,
User admin,
Team... teams)
Creates a new instance of
Headquarter. |
Player(String nick,
String completeName,
byte[] image,
String interestsDescription,
List<String> favouriteSports,
List<String> favouriteTeams,
boolean visibility,
User user,
User admin,
Team team)
Creates a new instance
Player |
User(String email,
String name,
String surname,
GregorianCalendar birthdate,
IdentificationType identificationType,
String numIdentificationType,
String residence,
String location,
String province,
String country,
String phone,
HashMap<String,String> socialNetworks,
Player player,
ArrayList<Player> managedPlayers,
ArrayList<Competition> managedCompetitions,
Team... teams)
Creates a new instance
User |
Copyright © 2017. All rights reserved.