We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7d2ef commit 5554ff2Copy full SHA for 5554ff2
src/main/java/edu/umn/msse/busbuddy/transit/Route.java
@@ -46,7 +46,7 @@ public class Route {
46
/**
47
* Instantiates a new Route with all required fields.
48
*
49
- * @pre \paramname{stops}.size() > 0
+ * @pre \paramname{stops}.size() >= 2
50
51
* @param routeId The Route id
52
* @param routeName The Route name
@@ -63,6 +63,14 @@ public List<Stop> getStops() {
63
return stops;
64
}
65
66
+
67
+ /**
68
+ * Sets the {@link Stop}s of this Route.
69
+ *
70
+ * Note that there must be 2 or more {@link Stop}s in a Route.
71
72
73
+ */
74
public void setStops(List<Stop> stops) {
75
this.stops = stops;
76
0 commit comments