diff options
| author | WillemDalton <willemhdalton@gmail.com> | 2025-10-02 08:55:33 -0400 |
|---|---|---|
| committer | WillemDalton <willemhdalton@gmail.com> | 2025-10-02 08:55:33 -0400 |
| commit | e218e35f333f8a30d213c7d3eebeb6f5f6bbcea3 (patch) | |
| tree | afc16118dd13e4ab089a85df90be11a80b157fd2 /src/main/java/design/model/Course.java | |
| parent | c03d30761e74e27815e6b7639f9ff4ec4e5c185a (diff) | |
| download | designproject-design-6-e218e35f333f8a30d213c7d3eebeb6f5f6bbcea3.tar.gz designproject-design-6-e218e35f333f8a30d213c7d3eebeb6f5f6bbcea3.tar.bz2 designproject-design-6-e218e35f333f8a30d213c7d3eebeb6f5f6bbcea3.zip | |
more progress on the strategy, unit testing
Diffstat (limited to 'src/main/java/design/model/Course.java')
| -rw-r--r-- | src/main/java/design/model/Course.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/java/design/model/Course.java b/src/main/java/design/model/Course.java new file mode 100644 index 0000000..8dfecd8 --- /dev/null +++ b/src/main/java/design/model/Course.java @@ -0,0 +1,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; + } +} |
