package tournament; import java.util.ArrayList; import java.util.List; import java.util.Arrays; public class ByeGame extends Game{ private final String player1; private final Game ref; ByeGame(String player1, Game ref){ super(); this.ref = ref; this.player1 = player1; } public Game getRef() { return ref; } @Override public String getPlayer1() { return player1; } @Override public String getPlayer2() { return ref.getWinner(); } @Override public List getAllPlayers() { List players = new ArrayList(); players.add(player1); players.addAll(ref.getAllPlayers()); return players; } @Override public List getAllGames() { List temp = new ArrayList(Arrays.asList(this.getId())); temp.addAll(ref.getAllGames()); return temp; } @Override public List getRemaningPlayers() { // TODO Auto-generated method stub throw new UnsupportedOperationException("Unimplemented method 'getRemaningPlayers'"); } }