Package es.situm.sdk.model.navigation
Class NavigationProgress.Builder
- java.lang.Object
-
- es.situm.sdk.model.navigation.NavigationProgress.Builder
-
- Enclosing class:
- NavigationProgress
public static final class NavigationProgress.Builder extends Object
NavigationProgressbuilder static inner class.
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(NavigationProgress copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NavigationProgressbuild()Returns aNavigationProgressbuilt from the parameters previously set.NavigationProgress.BuilderclosestLocationInRoute(Location closestLocationInRoute)Sets theclosestLocationInRouteandclosestRoutePointand returns a reference to this Builder so that the methods can be chained together.NavigationProgress.BuilderclosestRoutePoint(Point closestRoutePoint)Deprecated.NavigationProgress.BuilderdistanceToClosestRoutePoint(double distanceToClosestRoutePoint)Sets thedistanceToClosestPointInRouteand returns a reference to this Builder so that the methods can be chained together.NavigationProgress.BuilderdistanceToEndStep(double distanceToEndStep)Sets thedistanceToEndStepand returns a reference to this Builder so that the methods can be chained together.NavigationProgress.BuilderdistanceToGoal(double distanceToGoal)Sets thedistanceToGoaland returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builderindication(Indication indication)Sets thecurrentIndicationand returns a reference to this Builder so that the methods can be chained together.NavigationProgress.BuildernextIndication(Indication nextIndication)Sets thenextIndicationand returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builderpoints(List<Point> points)Sets thepointsand returns a reference to this Builder so that the methods can be chained together.NavigationProgress.BuilderrouteStep(RouteStep routeStep)Sets therouteStepand returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builderspeed(double speed)Sets thespeedand returns a reference to this Builder so that the methods can be chained together.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(@NonNull NavigationProgress copy)
-
-
Method Detail
-
speed
@NonNull public NavigationProgress.Builder speed(double speed)
Sets thespeedand returns a reference to this Builder so that the methods can be chained together.- Parameters:
speed- thespeedto set- Returns:
- a reference to this Builder
-
closestRoutePoint
@NonNull public NavigationProgress.Builder closestRoutePoint(@NonNull Point closestRoutePoint)
Deprecated.Sets theclosestPointInRouteand returns a reference to this Builder so that the methods can be chained together.- Parameters:
closestRoutePoint- theclosestPointInRouteto set- Returns:
- a reference to this Builder
-
closestLocationInRoute
@NonNull public NavigationProgress.Builder closestLocationInRoute(@NonNull Location closestLocationInRoute)
Sets theclosestLocationInRouteandclosestRoutePointand returns a reference to this Builder so that the methods can be chained together.- Parameters:
closestLocationInRoute- theclosestLocationInRouteto set- Returns:
- a reference to this Builder
-
distanceToClosestRoutePoint
@NonNull public NavigationProgress.Builder distanceToClosestRoutePoint(double distanceToClosestRoutePoint)
Sets thedistanceToClosestPointInRouteand returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToClosestRoutePoint- thedistanceToClosestPointInRouteto set- Returns:
- a reference to this Builder
-
distanceToEndStep
@NonNull public NavigationProgress.Builder distanceToEndStep(double distanceToEndStep)
Sets thedistanceToEndStepand returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToEndStep- thedistanceToEndStepto set- Returns:
- a reference to this Builder
-
distanceToGoal
@NonNull public NavigationProgress.Builder distanceToGoal(double distanceToGoal)
Sets thedistanceToGoaland returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToGoal- thedistanceToGoalto set- Returns:
- a reference to this Builder
-
routeStep
@NonNull public NavigationProgress.Builder routeStep(@NonNull RouteStep routeStep)
Sets therouteStepand returns a reference to this Builder so that the methods can be chained together.- Parameters:
routeStep- therouteStepto set- Returns:
- a reference to this Builder
-
indication
@NonNull public NavigationProgress.Builder indication(@NonNull Indication indication)
Sets thecurrentIndicationand returns a reference to this Builder so that the methods can be chained together.- Parameters:
indication- thecurrentIndicationto set- Returns:
- a reference to this Builder
-
nextIndication
@NonNull public NavigationProgress.Builder nextIndication(@NonNull Indication nextIndication)
Sets thenextIndicationand returns a reference to this Builder so that the methods can be chained together.- Parameters:
nextIndication- thenextIndicationto set- Returns:
- a reference to this Builder
-
points
@NonNull public NavigationProgress.Builder points(@NonNull List<Point> points)
Sets thepointsand returns a reference to this Builder so that the methods can be chained together.- Parameters:
points- thepointsto set- Returns:
- a reference to this Builder
-
build
@NonNull public NavigationProgress build()
Returns aNavigationProgressbuilt from the parameters previously set.- Returns:
- a
NavigationProgressbuilt with parameters of thisNavigationProgress.Builder
-
-