Class NavigationProgress.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • speed

        @NonNull
        public NavigationProgress.Builder speed​(double speed)
        Sets the speed and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        speed - the speed to set
        Returns:
        a reference to this Builder
      • closestRoutePoint

        @NonNull
        public NavigationProgress.Builder closestRoutePoint​(@NonNull
                                                            Point closestRoutePoint)
        Sets the closestPointInRoute and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        closestRoutePoint - the closestPointInRoute to set
        Returns:
        a reference to this Builder
      • closestLocationInRoute

        @NonNull
        public NavigationProgress.Builder closestLocationInRoute​(@NonNull
                                                                 Location closestLocationInRoute)
        Sets the closestLocationInRoute and closestRoutePoint and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        closestLocationInRoute - the closestLocationInRoute to set
        Returns:
        a reference to this Builder
      • distanceToClosestRoutePoint

        @NonNull
        public NavigationProgress.Builder distanceToClosestRoutePoint​(double distanceToClosestRoutePoint)
        Sets the distanceToClosestPointInRoute and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        distanceToClosestRoutePoint - the distanceToClosestPointInRoute to set
        Returns:
        a reference to this Builder
      • distanceToEndStep

        @NonNull
        public NavigationProgress.Builder distanceToEndStep​(double distanceToEndStep)
        Sets the distanceToEndStep and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        distanceToEndStep - the distanceToEndStep to set
        Returns:
        a reference to this Builder
      • distanceToGoal

        @NonNull
        public NavigationProgress.Builder distanceToGoal​(double distanceToGoal)
        Sets the distanceToGoal and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        distanceToGoal - the distanceToGoal to set
        Returns:
        a reference to this Builder
      • routeStep

        @NonNull
        public NavigationProgress.Builder routeStep​(@NonNull
                                                    RouteStep routeStep)
        Sets the routeStep and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        routeStep - the routeStep to set
        Returns:
        a reference to this Builder
      • indication

        @NonNull
        public NavigationProgress.Builder indication​(@NonNull
                                                     Indication indication)
        Sets the currentIndication and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        indication - the currentIndication to set
        Returns:
        a reference to this Builder
      • nextIndication

        @NonNull
        public NavigationProgress.Builder nextIndication​(@NonNull
                                                         Indication nextIndication)
        Sets the nextIndication and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        nextIndication - the nextIndication to set
        Returns:
        a reference to this Builder
      • points

        @NonNull
        public NavigationProgress.Builder points​(@NonNull
                                                 java.util.List<Point> points)
        Sets the points and returns a reference to this Builder so that the methods can be chained together.
        Parameters:
        points - the points to set
        Returns:
        a reference to this Builder
      • build

        @NonNull
        public NavigationProgress build()
        Returns a NavigationProgress built from the parameters previously set.
        Returns:
        a NavigationProgress built with parameters of this NavigationProgress.Builder