summaryrefslogtreecommitdiff
path: root/src/main/java/design/model/Course.java
blob: 8dfecd85e63f431a84d6cbb58353d6b829206b46 (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
package design.model;

import java.util.List;

public class Course implements ICourse {
    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(String name, int difficultyRating, String location, int holeCount, int totalPar, List<Hole> holes) {
        this.name = name;
        this.difficultyRating = difficultyRating;
        this.location = location;
        this.holeCount = holeCount;
        this.totalPar = totalPar;
        this.holes = holes;
    }

    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;
    }
}