@Entity public class Match extends Object
| Constructor and Description |
|---|
Match()
Instantiates a new user
|
Match(long matchId,
Team matchHomeTeam,
Team matchVisitingTeam,
Date matchDate,
HeadQuarter matchPlace,
EventState matchState,
int matchDuration,
int matchLocalPoints,
int matchVisitingPoints,
String matchDescription,
List<String> matchComments,
Round matchRound)
Instantiates a new
Match |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
List<String> |
getMatchComments()
Gets the
Match comments. |
Date |
getMatchDate()
|
String |
getMatchDescription()
Gets the
Match description |
int |
getMatchDuration()
Gets the match duration
|
Team |
getMatchHomeTeam()
|
long |
getMatchId()
Gets the
Match id. |
int |
getMatchLocalPoints()
Gets the
Match local points |
HeadQuarter |
getMatchPlace()
Gets the
Match place (a HeadQuarter) |
Round |
getMatchRound()
|
EventState |
getMatchState()
Gets the current
Match EventState |
int |
getMatchVisitingPoints()
Gets the
Match visiting points |
Team |
getMatchVisitingTeam()
|
int |
hashCode()
Returns the hashCode for the
Match object |
void |
setMatchComments(List<String> matchComments)
Sets the
Match comments. |
void |
setMatchDate(Date matchDate)
Sets the
Match DateTimeException |
void |
setMatchDescription(String matchDescription)
Sets the
Match description |
void |
setMatchDuration(int matchDuration)
Sets the
Match duration |
void |
setMatchHomeTeam(Team matchHomeTeam)
|
void |
setMatchId(long matchId)
Sets the
Match Id |
void |
setMatchLocalPoints(int matchLocalPoints)
Sets the
Match local points |
void |
setMatchPlace(HeadQuarter matchPlace)
Sets the
Match place (a HeadQuarter) |
void |
setMatchRound(Round matchRound)
|
void |
setMatchState(EventState matchState)
Sets the current
Match EventState |
void |
setMatchVisitingPoints(int matchVisitingPoints)
Sets the
Match visiting points |
void |
setMatchVisitingTeam(Team matchVisitingTeam)
|
public Match(long matchId,
Team matchHomeTeam,
Team matchVisitingTeam,
Date matchDate,
HeadQuarter matchPlace,
EventState matchState,
int matchDuration,
int matchLocalPoints,
int matchVisitingPoints,
String matchDescription,
List<String> matchComments,
Round matchRound)
MatchmatchId - The Match Id. This parameter must be non null.matchHomeTeam - The Match playing home Team. This parameter must
be non null.matchVisitingTeam - The Match playing visiting Team. This parameter
must be non null.matchDate - The Match DateTimeException. This parameter must
be non null.matchPlace - The HeadQuarter in which the Match will be played.matchState - The EventState of the Match. This parameter must
be non null.matchDuration - The duration of the Match. This parameter must be non null
and with a minimum of 0.matchLocalPoints - The local Team points in the Match. This parameter
must be non null and with a minimum of 0.matchVisitingPoints - The visiting Team points in the Match. This
parameter must be non null and with a minimum of 0.matchDescription - The description of the Match. This parameter must be non
null and have a length between 0 and 240 characters.matchComments - The comments posted for the Match. This parameter must be
non null.matchRound - The Round which the Match belongs to. This
parameter must be non null.NullPointerException - if a null value is passed as the value of any parameters
with that restriction.IllegalArgumentException - if a value provided for any parameter is not valid according to
its constraintspublic Match()
public void setMatchId(long matchId)
Match IdmatchId - The id for the MatchNullPointerException - if {code matchId} is nullpublic void setMatchHomeTeam(Team matchHomeTeam)
matchHomeTeam - The home Team for the MatchNullPointerException - if the parameter is nullpublic void setMatchVisitingTeam(Team matchVisitingTeam)
matchVisitingTeam - the visiting TeamNullPointerException - if the Team is nullpublic void setMatchDate(Date matchDate)
Match DateTimeExceptionmatchDate - the Match DateNullPointerException - if the match Date is nullpublic HeadQuarter getMatchPlace()
Match place (a HeadQuarter)Match placepublic void setMatchPlace(HeadQuarter matchPlace)
Match place (a HeadQuarter)matchPlace - the Match HeadQuarter for the placepublic EventState getMatchState()
Match EventStateMatch EventStatepublic void setMatchState(EventState matchState)
Match EventStatematchState - the current Match EventStateNullPointerException - if the matchState is nullpublic int getMatchDuration()
public void setMatchDuration(int matchDuration)
Match durationmatchDuration - the duration of the MatchNullPointerException - if the match duration is nullIllegalArgumentException - if the match duration is less than 0public int getMatchLocalPoints()
Match local pointsMatch local pointspublic void setMatchLocalPoints(int matchLocalPoints)
Match local pointsmatchLocalPoints - the Match local pointsNullPointerException - if the argument is nullIllegalArgumentException - if the local points aren't greater or equal than 0public int getMatchVisitingPoints()
Match visiting pointsMatch visiting pointspublic void setMatchVisitingPoints(int matchVisitingPoints)
Match visiting pointsmatchVisitingPoints - the Match visiting pointsNullPointerException - if the argument is nullIllegalArgumentException - if the visiting points are not greater or equal to 0public String getMatchDescription()
Match descriptionMatch descriptionpublic void setMatchDescription(String matchDescription)
Match descriptionmatchDescription - the Match descriptionNullPointerException - if the argument is nullIllegalArgumentException - if the match description character count is not between 0 and 240public List<String> getMatchComments()
Match comments.Match commentspublic void setMatchComments(List<String> matchComments)
Match comments.matchComments - the Match commentsNullPointerException - if the argument is nullpublic void setMatchRound(Round matchRound)
matchRound - the current Match RoundNullPointerException - if the argument is nullpublic int hashCode()
Match objectCopyright © 2018. All rights reserved.