public class Match
Class that models a match
Constructor and Description |
---|
Match(int id,
Team homeTeam,
Team awayTeam,
java.lang.Integer homeTeamBet,
java.lang.Integer awayTeamBet)
Class that models a match
|
Modifier and Type | Method and Description |
---|---|
Team |
component2()
:
|
Team |
component3()
:
|
java.lang.Integer |
component4() |
java.lang.Integer |
component5() |
Match |
copy(int id,
Team homeTeam,
Team awayTeam,
java.lang.Integer homeTeamBet,
java.lang.Integer awayTeamBet)
Class that models a match
|
boolean |
equals(java.lang.Object p) |
Team |
getAwayTeam()
:
|
java.lang.Integer |
getAwayTeamBet() |
Team |
getHomeTeam()
:
|
java.lang.Integer |
getHomeTeamBet() |
int |
hashCode() |
void |
placeBet(Session session,
int homeScore,
int awayScore) |
java.lang.String |
toString() |
public Match(int id, Team homeTeam, Team awayTeam, java.lang.Integer homeTeamBet, java.lang.Integer awayTeamBet)
Class that models a match
id
- : The ID of the match in the fussball-tipp.eu websitehomeTeam
- : The team classified as the home teamawayTeam
- : The team classified as the away teamid
- : The ID of the match in the fussball-tipp.eu websitehomeTeam
- : The team classified as the home teamawayTeam
- : The team classified as the away teampublic void placeBet(Session session, int homeScore, int awayScore)
public Team getHomeTeam()
:
The team classified as the home team
public Team getAwayTeam()
:
The team classified as the away team
public java.lang.Integer getHomeTeamBet()
public java.lang.Integer getAwayTeamBet()
public Team component2()
:
The team classified as the home team
public Team component3()
:
The team classified as the away team
public java.lang.Integer component4()
public java.lang.Integer component5()
public Match copy(int id, Team homeTeam, Team awayTeam, java.lang.Integer homeTeamBet, java.lang.Integer awayTeamBet)
Class that models a match
id
- : The ID of the match in the fussball-tipp.eu websitehomeTeam
- : The team classified as the home teamawayTeam
- : The team classified as the away teampublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)