@Entity public class Round extends Object
| Constructor and Description |
|---|
Round()
Creates a new empty instance of
Round. |
Round(long roundId,
int roundNumber,
Date roundDate,
EventState roundState,
String roundDescription,
List<String> roundComments,
HeadQuarter roundHeadQuarter,
Competition roundCompetition)
Creates a new instance of
Round. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
List<String> |
getRoundComments()
Returns the comments of the round.
|
Competition |
getRoundCompetition()
Returns the
Competition of the round. |
Date |
getRoundDate()
Returns the date of the round.
|
String |
getRoundDescription()
Returns the description of the round.
|
HeadQuarter |
getRoundHeadQuarter()
Returns the
HeadQuarter of the round. |
long |
getRoundId()
Returns the id of the round.
|
int |
getRoundNumber()
Returns the number of the round.
|
EventState |
getRoundState()
Returns the state of the round.
|
int |
hashCode()
Returns the hascCode of the round.
|
void |
setRoundComments(List<String> roundComments)
Sets the comments of the round.
|
void |
setRoundCompetition(Competition roundCompetition)
Sets the
Competition of the round. |
void |
setRoundDate(Date roundDate)
Sets the round date.
|
void |
setRoundDescription(String roundDescription)
Sets the description of the round.
|
void |
setRoundHeadQuarter(HeadQuarter roundHeadQuarter)
Sets the
HeadQuarter of the round. |
void |
setRoundId(long roundId)
Sets the id of the round.
|
void |
setRoundNumber(int roundNumber)
Sets the number of the round.
|
void |
setRoundState(EventState roundState)
Sets the state of the round.
|
public Round(long roundId,
int roundNumber,
Date roundDate,
EventState roundState,
String roundDescription,
List<String> roundComments,
HeadQuarter roundHeadQuarter,
Competition roundCompetition)
Round.roundId - the id of the round. This parameter must be a non empty and non
null long.roundNumber - the number of the round. This parameter must be greater than zero
and non null int.roundDate - the date of the round. This parameter must be a non empty and non
null Date.roundState - the state of the round. This parameter must be a EventState.roundDescription - the round description. This parameter must be a non empty and non
null String.roundComments - List of comments. This parameter must be a non
null List of StringroundHeadQuarter - the Head Quarter of the round. This parameter must be a
HeadQuarterroundCompetition - the Competition of the round. This parameter must be a
Competition.NullPointerException - if a null value is passed as the value for any parameter
except roundHeadQuarter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public Round()
Round.public long getRoundId()
public void setRoundId(long roundId)
roundId - the id of the round. This parameter must be a non empty and non
null long.public int getRoundNumber()
public void setRoundNumber(int roundNumber)
roundNumber - the number of the round. This parameter must be greater than zero
and non null int.NullPointerException - if a null value is passed.IllegalArgumentException - if the value is zero or less.public Date getRoundDate()
public void setRoundDate(Date roundDate)
roundDate - the date of the round. This parameter must be a non empty and non
null Date.NullPointerException - if a null value is passed.public HeadQuarter getRoundHeadQuarter()
HeadQuarter of the round.HeadQuarter of the round.public void setRoundHeadQuarter(HeadQuarter roundHeadQuarter)
HeadQuarter of the round.roundHeadQuarter - the Head Quarter of the round. This parameter must be a
HeadQuarterpublic EventState getRoundState()
public void setRoundState(EventState roundState)
roundState - the state of the round. This parameter must be a EventState.NullPointerException - if a null value is passed.public String getRoundDescription()
public void setRoundDescription(String roundDescription)
roundDescription - the round description. This parameter must be a non empty and non
null String.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is not valid.public List<String> getRoundComments()
public void setRoundComments(List<String> roundComments)
roundComments - List of comments. This parameter must be a non
null List of StringNullPointerException - if a null value is passed.public Competition getRoundCompetition()
Competition of the round.Competition of the round.public void setRoundCompetition(Competition roundCompetition)
Competition of the round.roundCompetition - the Competition of the round. This parameter must be a
CompetitionNullPointerException - if a null value is passed.public int hashCode()
Copyright © 2017. All rights reserved.