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 java.lang.Object
NavigationProgress
builder 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 NavigationProgress
build()
Returns aNavigationProgress
built from the parameters previously set.NavigationProgress.Builder
closestLocationInRoute(Location closestLocationInRoute)
Sets theclosestLocationInRoute
andclosestRoutePoint
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
closestRoutePoint(Point closestRoutePoint)
Deprecated.NavigationProgress.Builder
distanceToClosestRoutePoint(double distanceToClosestRoutePoint)
Sets thedistanceToClosestPointInRoute
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
distanceToEndStep(double distanceToEndStep)
Sets thedistanceToEndStep
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
distanceToGoal(double distanceToGoal)
Sets thedistanceToGoal
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
indication(Indication indication)
Sets thecurrentIndication
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
nextIndication(Indication nextIndication)
Sets thenextIndication
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
points(java.util.List<Point> points)
Sets thepoints
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
routeStep(RouteStep routeStep)
Sets therouteStep
and returns a reference to this Builder so that the methods can be chained together.NavigationProgress.Builder
speed(double speed)
Sets thespeed
and 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 thespeed
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
speed
- thespeed
to set- Returns:
- a reference to this Builder
-
closestRoutePoint
@NonNull public NavigationProgress.Builder closestRoutePoint(@NonNull Point closestRoutePoint)
Deprecated.Sets theclosestPointInRoute
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
closestRoutePoint
- theclosestPointInRoute
to set- Returns:
- a reference to this Builder
-
closestLocationInRoute
@NonNull public NavigationProgress.Builder closestLocationInRoute(@NonNull Location closestLocationInRoute)
Sets theclosestLocationInRoute
andclosestRoutePoint
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
closestLocationInRoute
- theclosestLocationInRoute
to set- Returns:
- a reference to this Builder
-
distanceToClosestRoutePoint
@NonNull public NavigationProgress.Builder distanceToClosestRoutePoint(double distanceToClosestRoutePoint)
Sets thedistanceToClosestPointInRoute
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToClosestRoutePoint
- thedistanceToClosestPointInRoute
to set- Returns:
- a reference to this Builder
-
distanceToEndStep
@NonNull public NavigationProgress.Builder distanceToEndStep(double distanceToEndStep)
Sets thedistanceToEndStep
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToEndStep
- thedistanceToEndStep
to set- Returns:
- a reference to this Builder
-
distanceToGoal
@NonNull public NavigationProgress.Builder distanceToGoal(double distanceToGoal)
Sets thedistanceToGoal
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
distanceToGoal
- thedistanceToGoal
to set- Returns:
- a reference to this Builder
-
routeStep
@NonNull public NavigationProgress.Builder routeStep(@NonNull RouteStep routeStep)
Sets therouteStep
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
routeStep
- therouteStep
to set- Returns:
- a reference to this Builder
-
indication
@NonNull public NavigationProgress.Builder indication(@NonNull Indication indication)
Sets thecurrentIndication
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
indication
- thecurrentIndication
to set- Returns:
- a reference to this Builder
-
nextIndication
@NonNull public NavigationProgress.Builder nextIndication(@NonNull Indication nextIndication)
Sets thenextIndication
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
nextIndication
- thenextIndication
to set- Returns:
- a reference to this Builder
-
points
@NonNull public NavigationProgress.Builder points(@NonNull java.util.List<Point> points)
Sets thepoints
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
points
- thepoints
to set- Returns:
- a reference to this Builder
-
build
@NonNull public NavigationProgress build()
Returns aNavigationProgress
built from the parameters previously set.- Returns:
- a
NavigationProgress
built with parameters of thisNavigationProgress.Builder
-
-