AI-generated Key Takeaways
-
VehicleStop.Builderis used to create instances ofVehicleStopobjects. -
It provides methods to set the location (
Waypoint), state, and associated tasks (TaskInfolist) for the stop. -
The
build()method creates a newVehicleStopinstance using the provided data. -
A
VehicleStopmust have at least one associatedTaskInfoand all necessary values set to avoid exceptions during the build process.
Builder class for VehicleStop.
Public Method Summary
| VehicleStop |
build()
Returns new VehicleStop instance with the state set by the Builder.
|
| abstract VehicleStop.Builder |
setTaskInfoList(List<TaskInfo>
taskInfoList)
Sets the list of
TaskInfo objects associated with this stop.
|
| abstract VehicleStop.Builder |
setVehicleStopState(int value)
Sets the state of the VehicleStop.
|
| abstract VehicleStop.Builder |
setWaypoint(Waypoint waypoint)
Sets the location that should be navigated to for the stop.
|
Inherited Method Summary
Public Methods
public VehicleStop build ()
Returns new VehicleStop instance with the state set by the Builder.
Throws
| NullPointerException | if any non-nullable values are not set. |
|---|---|
| IllegalArgumentException | if the VehicleStop is set without any TaskInfos. |
public abstract VehicleStop.Builder setTaskInfoList (List<TaskInfo> taskInfoList)
Sets the list of
TaskInfo objects associated with this stop.
public abstract VehicleStop.Builder setVehicleStopState (int value)
Sets the state of the VehicleStop.
public abstract VehicleStop.Builder setWaypoint (Waypoint waypoint)
Sets the location that should be navigated to for the stop.