blob: f907622acd6efdba6fa14beec0d8a0c25046c86e (
plain) (
blame)
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
|
package design.model;
import design.model.course_search.ICourse;
import java.util.List;
public class Course implements ICourse {
private final int id;
private final String name;
private final int difficultyRating;
private final String location;
private final int holeCount;
private final int totalPar;
private final List<Hole> holes;
public Course(int id, String name, int difficultyRating, String location, int holeCount, int totalPar, List<Hole> holes) {
this.id = id;
this.name = name;
this.difficultyRating = difficultyRating;
this.location = location;
this.holeCount = holeCount;
this.totalPar = totalPar;
this.holes = holes;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public float getDifficultyRating() {
return difficultyRating;
}
public String getLocation() {
return location;
}
public int getHoleCount() {
return holeCount;
}
public int getTotalPar() {
return totalPar;
}
public List<Hole> getHoles() {
return holes;
}
}
|