@author Joel Costigliola
| 18 | * @author Joel Costigliola |
| 19 | */ |
| 20 | public class Player { |
| 21 | |
| 22 | private Name name; |
| 23 | public Name nickname; |
| 24 | private int pointsPerGame; |
| 25 | private int assistsPerGame; |
| 26 | private int reboundsPerGame; |
| 27 | private String team; |
| 28 | |
| 29 | public Player() {} |
| 30 | |
| 31 | public Player(Name name, String team) { |
| 32 | setName(name); |
| 33 | setTeam(team); |
| 34 | } |
| 35 | |
| 36 | public Name getName() { |
| 37 | return name; |
| 38 | } |
| 39 | |
| 40 | public void setName(Name name) { |
| 41 | this.name = name; |
| 42 | } |
| 43 | |
| 44 | public int getPointsPerGame() { |
| 45 | return pointsPerGame; |
| 46 | } |
| 47 | |
| 48 | public void setPointsPerGame(int pointsPerGame) { |
| 49 | this.pointsPerGame = pointsPerGame; |
| 50 | } |
| 51 | |
| 52 | public int getAssistsPerGame() { |
| 53 | return assistsPerGame; |
| 54 | } |
| 55 | |
| 56 | public void setAssistsPerGame(int assistsPerGame) { |
| 57 | this.assistsPerGame = assistsPerGame; |
| 58 | } |
| 59 | |
| 60 | public int getReboundsPerGame() { |
| 61 | return reboundsPerGame; |
| 62 | } |
| 63 | |
| 64 | public void setReboundsPerGame(int reboundsPerGame) { |
| 65 | this.reboundsPerGame = reboundsPerGame; |
| 66 | } |
| 67 | |
| 68 | public String getTeam() { |
| 69 | return team; |
| 70 | } |
| 71 | |
| 72 | public void setTeam(String team) { |
| 73 | this.team = team; |
| 74 | } |
| 75 | |
| 76 | @Override |
| 77 | public String toString() { |
nothing calls this directly
no outgoing calls
no test coverage detected