@Entity public class Player extends Object implements Serializable
| Constructor and Description |
|---|
Player() |
Player(String nick,
String completeName,
byte[] image,
String interestsDescription,
List<String> favouriteSports,
List<String> favouriteTeams,
boolean visivility)
Creates a new instance
Player |
Player(String nickName,
String interestsDescription,
String completeName)
Creates a new instance
Player |
| Modifier and Type | Method and Description |
|---|---|
String |
getCompleteName() |
List<String> |
getFavouriteSports() |
List<String> |
getFavouriteTeams() |
byte[] |
getImage() |
String |
getInterestsDescription() |
String |
getNick() |
boolean |
isVisivility() |
void |
setCompleteName(String completeName)
Sets the complete name of the player
|
void |
setFavouriteSports(List<String> favouriteSports)
Sets the favouriteSports of the player
|
void |
setFavouriteTeams(List<String> favouriteTeams)
Sets the favouriteTeams of the player
|
void |
setImage(byte[] image)
Sets the image of the player
|
void |
setInterestsDescription(String interestsDescription)
Sets the interestsDescription of the player
|
void |
setNick(String nick)
Sets the nick of the player
|
void |
setVisivility(boolean visivility)
Sets the visivility of the player
|
public Player()
public Player(String nick, String completeName, byte[] image, String interestsDescription, List<String> favouriteSports, List<String> favouriteTeams, boolean visivility)
Playernick - the player nick witch identifier the player in our system. Must be a non empty and non null string with a maximum
length of 30 chars.completeName - the complete player name. Must be a non empty and non null string with a maximum
length of 100 chars.image - the image/avatar of the player in our system.interestsDescription - description of the interests of the player. Must be a non empty and non null string with a maximum
length of 500 chars.favouriteSports - list witch contains the favourite sports of the player.favouriteTeams - list witch contains the favourite teams of the player.visivility - indicates whether the user's profile is public or private.NullPointerException - if a null value is passed as the value for some parameters.IllegalArgumentException - if value provided for some parameters is not valid according to its description.public Player(String nickName, String interestsDescription, String completeName)
PlayernickName - the player nick witch identifier the player in our system. Must be a non empty and non null string with a maximum
length of 30 chars.interestsDescription - description of the interests of the player. Must be a non empty and non null string with a maximum
length of 500 chars.completeName - the complete player name. Must be a non empty and non null string with a maximum
length of 100 chars.NullPointerException - if a null value is passed as the value for some parameters.IllegalArgumentException - if value provided for some parameters is not valid according to its description.public void setNick(String nick)
nick - the nick of the player which identifies the player in the system.
Must be a non empty and non null string with a maximum
length of 30 chars.NullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public void setImage(byte[] image)
image - the image of the player in the system.public void setInterestsDescription(String interestsDescription)
interestsDescription - the player interests description.
Must be a non empty and non null string with a maximum
length of 500 chars.NullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public void setFavouriteSports(List<String> favouriteSports)
favouriteSports - the list of the favourite sports of the player.public void setFavouriteTeams(List<String> favouriteTeams)
favouriteTeams - the list of the favourite teams of the player.public void setVisivility(boolean visivility)
visivility - indicates whether the user's profile is public or private.public void setCompleteName(String completeName)
completeName - the complete name of the player.
Must be a non empty and non null string with a maximum
length of 100 chars.NullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public String getInterestsDescription()
public String getNick()
public String getCompleteName()
public byte[] getImage()
public boolean isVisivility()
Copyright © 2017. All rights reserved.