Advertisement
Guest User

Competition class

a guest
Mar 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. package siteParis;
  2.  
  3. import java.util.Collection;
  4.  
  5.  
  6. public class Competition {
  7.  
  8. private String name;
  9. private DateFrancaise date;
  10. private LinkedList <Bet> bets;
  11. private LinkedList <competitor> competitor;
  12. private Competitor winner;
  13.  
  14. public Competition (String name, DateFrancaise date, LinkedList <Competitor> competitor){
  15.    this.name = name;
  16.    this.date = date;
  17.    this.competitor = copmetitor
  18.    this.bets = new LinkedList <Bet>();
  19.    this.winner = null;
  20. }
  21.  
  22.  
  23. public String getName(){
  24.    return this.name;
  25. }
  26.  
  27. public DateFrancaise getDate(){
  28.    return this.date;
  29. }
  30.  
  31. public Competitor getCompetitor(){
  32.    return this.competitor
  33. }
  34.  
  35. public LinkedList <Bet> getBets(){
  36.    return this.bets;
  37. }
  38.  
  39. public void addBet(Bet bet){
  40.    bets.add(bet);
  41. }
  42.  
  43. public void setWinner(Competitor competitor){
  44.    this.winner = competitor;
  45. }
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement