public abstract static class BannerComponents.Builder
extends java.lang.Object
BannerComponents
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract BannerComponents.Builder |
abbreviation(java.lang.String abbreviation)
The abbreviated form of text.
|
abstract BannerComponents.Builder |
abbreviationPriority(java.lang.Integer abbreviationPriority)
An integer indicating the order in which the abbreviation abbr should be used in
place of text.
|
abstract BannerComponents.Builder |
active(java.lang.Boolean activeState)
A boolean telling you if that lane can be used to complete the upcoming maneuver.
|
abstract BannerComponents |
build()
Build a new
BannerComponents object. |
abstract BannerComponents.Builder |
directions(java.util.List<java.lang.String> directions)
A List of directions indicating which way you can go from a lane
(left, right, or straight).
|
abstract BannerComponents.Builder |
imageBaseUrl(java.lang.String imageBaseUrl)
In some cases when the
LegStep is a highway or major roadway, there might be a shield
icon that's included to better identify to your user to roadway. |
abstract BannerComponents.Builder |
text(java.lang.String text)
A snippet of the full
BannerText.text() which can be used for visually altering parts
of the full string. |
abstract BannerComponents.Builder |
type(java.lang.String type)
String giving you more context about the component which may help in visual markup/display
choices.
|
public abstract BannerComponents.Builder text(java.lang.String text)
BannerText.text()
which can be used for visually altering parts
of the full string.text
- a single snippet of the full text instructionpublic abstract BannerComponents.Builder type(java.lang.String type)
Possible values:
type
- String type from above listpublic abstract BannerComponents.Builder abbreviation(@Nullable java.lang.String abbreviation)
abbreviation
- for the given text of this componentpublic abstract BannerComponents.Builder abbreviationPriority(@Nullable java.lang.Integer abbreviationPriority)
Multiple components can have the same abbreviationPriority and when this happens all components with the same abbr_priority should be abbreviated at the same time. Finding no larger values of abbreviationPriority indicates that the string is fully abbreviated.
abbreviationPriority
- Integer indicating the order of the abbreviationpublic abstract BannerComponents.Builder imageBaseUrl(@Nullable java.lang.String imageBaseUrl)
LegStep
is a highway or major roadway, there might be a shield
icon that's included to better identify to your user to roadway. Note that this doesn't
return the image itself but rather the url which can be used to download the file.imageBaseUrl
- the url which can be used to download the shield icon if one is avaliablepublic abstract BannerComponents.Builder directions(java.util.List<java.lang.String> directions)
directions
- List of allowed directions from that lanepublic abstract BannerComponents.Builder active(java.lang.Boolean activeState)
activeState
- true, if the lane could be used for upcoming maneuver, false - otherwisepublic abstract BannerComponents build()
BannerComponents
object.BannerComponents
using the provided values in this builder