Advertisement
Guest User

FootballClub

a guest
Nov 17th, 2019
1,236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. import java.util.Collection;
  2.  
  3. public interface FootballClub extends Club {
  4.  
  5.     /**
  6.      * Adds a new member to the club
  7.      * @param object of type implementing ClubMember
  8.      */
  9.     public void addMember(ClubMember member);
  10.  
  11.     /**
  12.      * Obtains the collection of current members
  13.      * @return actual collection of existing members
  14.      */
  15.     public Collection<ClubMember> getMembers();
  16.  
  17.     /**
  18.      * Changes the trainer of the football club
  19.      * @param dedicated member that has the trainer role
  20.      * @apiNote the trainer is not part of the member collection
  21.      */
  22.     public void setTrainer(ClubMember member);
  23.  
  24.     /**
  25.      * Obtains the trainer of this club
  26.      */
  27.     public ClubMember getTrainer();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement