Created
May 25, 2016 10:56
-
-
Save fmcarvalho/307525062873c83c82ad662a2c7a3f74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
/** | |
* @author Miguel Gamboa | |
* created on 23-05-2016 | |
*/ | |
public class SoccerSeason { | |
public final int id; | |
public final String caption; | |
public final String league; | |
public final String year; | |
public final int currentMatchday; | |
public final int numberOfMatchdays; | |
public final int numberOfTeams; | |
public final int numberOfGames; | |
public final Date lastUpdated; | |
public SoccerSeason( | |
int id, | |
String caption, | |
String league, | |
String year, | |
int currentMatchday, | |
int numberOfMatchdays, | |
int numberOfTeams, | |
int numberOfGames, | |
Date lastUpdated) | |
{ | |
this.id = id; | |
this.caption = caption; | |
this.league = league; | |
this.year = year; | |
this.currentMatchday = currentMatchday; | |
this.numberOfMatchdays = numberOfMatchdays; | |
this.numberOfTeams = numberOfTeams; | |
this.numberOfGames = numberOfGames; | |
this.lastUpdated = lastUpdated; | |
} | |
@Override | |
public String toString() { | |
return "SoccerSeason{" + | |
"id=" + id + | |
", caption='" + caption + '\'' + | |
", league='" + league + '\'' + | |
", year='" + year + '\'' + | |
", currentMatchday=" + currentMatchday + | |
", numberOfMatchdays=" + numberOfMatchdays + | |
", numberOfTeams=" + numberOfTeams + | |
", numberOfGames=" + numberOfGames + | |
", lastUpdated=" + lastUpdated + | |
"}"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment