-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathPlayer.java
More file actions
57 lines (54 loc) · 1.67 KB
/
Player.java
File metadata and controls
57 lines (54 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package ru.urfu.model;
public class Player {
private String name;
private String team;
private String city;
private String position;
private String nationality;
private String agency;
private int transferCost;
private int participations;
private int goals;
private int assists;
private int yellowCards;
private int redCards;
public Player(
String name,
String team,
String city,
String position,
String nationality,
String agency,
int transferCost,
int participations,
int goals,
int assists,
int yellowCards,
int redCards
) {
this.name = name;
this.team = team;
this.city = city;
this.position = position;
this.nationality = nationality;
this.agency = agency;
this.transferCost = transferCost;
this.participations = participations;
this.goals = goals;
this.assists = assists;
this.yellowCards = yellowCards;
this.redCards = redCards;
}
public String getName() { return name; }
public String getTeam() { return team; }
public String getCity() { return city; }
public String getPosition() { return position; }
public String getNationality() { return nationality; }
public String getAgency() { return agency; }
public int getTransferCost() { return transferCost; }
public int getParticipations() { return participations; }
public int getGoals() { return goals; }
public int getAssists() { return assists; }
public int getYellowCards() { return yellowCards; }
public int getRedCards() { return redCards; }
}