TeamStanding.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package objects;
  2. public class TeamStanding {
  3. private int wins;
  4. private int losses;
  5. private int draws;
  6. private int points;
  7. private String teamName;
  8. private float goalsScored;
  9. private float goalsConceded;
  10. private float goalDiff;
  11. public TeamStanding(String teamName, int wins, int losses, int draws, int points, float goalsScored, float goalsConceded, float goalDiff) {
  12. super();
  13. this.wins = wins;
  14. this.losses = losses;
  15. this.draws = draws;
  16. this.points = points;
  17. this.teamName = teamName;
  18. this.goalsScored = goalsScored;
  19. this.goalsConceded = goalsConceded;
  20. this.goalDiff = goalDiff;
  21. }
  22. public int getWins() {
  23. return wins;
  24. }
  25. public int getLosses() {
  26. return losses;
  27. }
  28. public int getDraws() {
  29. return draws;
  30. }
  31. public int getPoints() {
  32. return points;
  33. }
  34. public void setWins(int wins) {
  35. this.wins = wins;
  36. }
  37. public void setLosses(int losses) {
  38. this.losses = losses;
  39. }
  40. public void setDraws(int draws) {
  41. this.draws = draws;
  42. }
  43. public void setPoints(int points) {
  44. this.points = points;
  45. }
  46. public String getTeamName() {
  47. return teamName;
  48. }
  49. public void setTeamName(String teamName) {
  50. this.teamName = teamName;
  51. }
  52. public float getGoalsScored() {
  53. return goalsScored;
  54. }
  55. public float getGoalsConceded() {
  56. return goalsConceded;
  57. }
  58. public float getGoalDiff() {
  59. return goalDiff;
  60. }
  61. public void setGoalsScored(float goalsScored) {
  62. this.goalsScored = goalsScored;
  63. }
  64. public void setGoalsConceded(float goalsConceded) {
  65. this.goalsConceded = goalsConceded;
  66. }
  67. public void setGoalDiff(float goalDiff) {
  68. this.goalDiff = goalDiff;
  69. }
  70. }