Package com.cta4j.bus.prediction.query
Class VehiclesPredictionsQuery.Builder
java.lang.Object
com.cta4j.bus.prediction.query.VehiclesPredictionsQuery.Builder
- Enclosing class:
VehiclesPredictionsQuery
Builder for
VehiclesPredictionsQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theVehiclesPredictionsQuery.maxResults(Integer maxResults) Sets the maximum number of predictions to return.
-
Constructor Details
-
Builder
Constructs aBuilder.- Parameters:
vehicleIds- theListof vehicle IDs to retrieve predictions for- Throws:
NullPointerException- ifvehicleIdsor any of its elements arenull
-
-
Method Details
-
maxResults
Sets the maximum number of predictions to return.- Parameters:
maxResults- the maximum number of predictions to return- Returns:
- this
Builderinstance - Throws:
NullPointerException- ifmaxResultsisnullIllegalArgumentException- ifmaxResultsis not positive
-
build
Builds theVehiclesPredictionsQuery.- Returns:
- the constructed
VehiclesPredictionsQuery
-