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 holes; public Course(String name, int difficultyRating, String location, int holeCount, int totalPar, List 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 getHoles() { return holes; } }