@Entity public class Player extends Object
| Constructor and Description |
|---|
Player()
Creates a new empty instance of
Player. |
Player(long playerId,
String playerNickName,
byte[] playerPicture,
String playerInterests,
String playerEmail,
String playerLocation,
String playerProvince,
String playerFavouriteSportsList,
String playerFavouriteTeamList,
Boolean playerPrivacity)
Creates a new instance of
Player without owner. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
String |
getPlayerEmail()
Returns the email of the Player.
|
String |
getPlayerFavouriteSportsList()
Returns the list of favourite sports of Player.
|
String |
getPlayerFavouriteTeamList()
Returns the list of favourite teams of Player.
|
long |
getPlayerId()
Returns the id of the Player.
|
String |
getPlayerInterests()
Returns the interests of the Player.
|
String |
getPlayerLocation()
Returns the location where the Player is living.
|
User |
getPlayerManagedByUser()
Returns the user
User. |
String |
getPlayerNickName()
Returns the nickname of the Player.
|
byte[] |
getPlayerPicture()
Returns the picture of the Player.
|
Boolean |
getPlayerPrivacity()
Returns the account privacity of the Player
|
String |
getPlayerProvince()
Returns the province where the Player is living.
|
List<Team> |
getPlayerTeams()
Returns the player
Teams. |
User |
getPlayerUser()
Returns the managed players
Users. |
int |
hashCode()
Returns the hashCode of Player.
|
void |
setPlayerEmail(String playerEmail)
Sets the email of the Player.
|
void |
setPlayerFavouriteSportsList(String playerFavouriteSportsList)
Sets the list of favourite sports of the Player.
|
void |
setPlayerFavouriteTeamList(String playerFavouriteTeamList)
Sets the list of favourite teams of Player
|
void |
setPlayerId(long playerId)
Sets the id of the Player.
|
void |
setPlayerInterests(String playerInterests)
Sets the interests of the Player.
|
void |
setPlayerLocation(String playerLocation)
Sets the location where the Player is living.
|
void |
setPlayerManagedByUser(User playerManagedByUser)
Sets the manager user of the player.
|
void |
setPlayerNickName(String playerNickName)
Sets the playerNickname of the Player.
|
void |
setPlayerPicture(byte[] playerPicture)
Sets the picture of the Player.
|
void |
setPlayerPrivacity(Boolean privacity)
Sets the privacity for the account of Player
|
void |
setPlayerProvince(String playerProvince)
Sets the province where the Player is living.
|
void |
setPlayerTeams(List<Team> playerTeams)
Sets the
Teams of the player. |
void |
setPlayerUser(User playerUser)
Sets the manager User of the player.
|
public Player()
Player.public Player(long playerId,
String playerNickName,
byte[] playerPicture,
String playerInterests,
String playerEmail,
String playerLocation,
String playerProvince,
String playerFavouriteSportsList,
String playerFavouriteTeamList,
Boolean playerPrivacity)
Player without owner.playerId - id of the Player. This parameter must be a non empty and non
null long.playerNickName - the nickname of Player. This parameter can not be null.playerPicture - the description of Player.playerInterests - the interests of Player.playerEmail - the email Player. This parameter can not be null.playerLocation - the location of Player. This parameter can not be null.playerProvince - the province of Player. This parameter can not be null.playerFavouriteSportsList - the list of favourite sports of Player.playerFavouriteTeamList - the list of favourite teams of Player.playerPrivacity - the privacity of Player.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 long getPlayerId()
public void setPlayerId(long playerId)
playerId - the id of the Player. This parameter must be a non empty and non
null long.public String getPlayerNickName()
public void setPlayerNickName(String playerNickName)
playerNickName - the nickname of the Player. This parameter must be a non empty and
non null long.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public byte[] getPlayerPicture()
public void setPlayerPicture(byte[] playerPicture)
playerPicture - the picture of the Player.public String getPlayerInterests()
public void setPlayerInterests(String playerInterests)
playerInterests - the interests of the Player.IllegalArgumentException - if the length of the string passed is not valid.public String getPlayerEmail()
public void setPlayerEmail(String playerEmail)
playerEmail - the email of the Player.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid or the format is
not valid.public String getPlayerLocation()
public void setPlayerLocation(String playerLocation)
playerLocation - the location where the Player is living.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getPlayerProvince()
public void setPlayerProvince(String playerProvince)
playerProvince - the province Player where the player is living.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public String getPlayerFavouriteSportsList()
public void setPlayerFavouriteSportsList(String playerFavouriteSportsList)
playerFavouriteSportsList - the list of favourite sports of the Player.public String getPlayerFavouriteTeamList()
public void setPlayerFavouriteTeamList(String playerFavouriteTeamList)
playerFavouriteTeamList - the list of favourite teams of the Player.public Boolean getPlayerPrivacity()
public void setPlayerPrivacity(Boolean privacity)
privacity - if player is private. This parameter must be a non empty and non
null booleanNullPointerException - if a null value is passed.public List<Team> getPlayerTeams()
Teams.Teams.public void setPlayerTeams(List<Team> playerTeams)
Teams of the player.playerTeams - List of Teams of a Player. This parameter must be
a non null List of TeamNullPointerException - if a null value is passed.public User getPlayerUser()
Users.Users.public void setPlayerUser(User playerUser)
playerUser - Users that manages the player.public User getPlayerManagedByUser()
User.User.public void setPlayerManagedByUser(User playerManagedByUser)
playerManagedByUser - The manager User of the player.public int hashCode()
Copyright © 2017. All rights reserved.