Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package siteParis;
- import java.util.Collection;
- public class Competition {
- private String name;
- private DateFrancaise date;
- private LinkedList <Bet> bets;
- private LinkedList <competitor> competitor;
- private Competitor winner;
- public Competition (String name, DateFrancaise date, LinkedList <Competitor> competitor){
- this.name = name;
- this.date = date;
- this.competitor = copmetitor
- this.bets = new LinkedList <Bet>();
- this.winner = null;
- }
- public String getName(){
- return this.name;
- }
- public DateFrancaise getDate(){
- return this.date;
- }
- public Competitor getCompetitor(){
- return this.competitor
- }
- public LinkedList <Bet> getBets(){
- return this.bets;
- }
- public void addBet(Bet bet){
- bets.add(bet);
- }
- public void setWinner(Competitor competitor){
- this.winner = competitor;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement