Place.Builder
public final class Place.Builder
A builder of Place.
Summary
Public constructors |
|---|
Builder(@NonNull CarLocation location)Returns a builder instance for a |
|
Returns a |
Public methods |
|
|---|---|
@NonNull Place |
build()Constructs the |
@NonNull Place.Builder |
setMarker(@NonNull PlaceMarker marker)Sets the |
Public constructors
Builder
public Builder(@NonNull CarLocation location)
Returns a builder instance for a CarLocation.
| Parameters | |
|---|---|
@NonNull CarLocation location |
the geographical location associated with the place |
| Throws | |
|---|---|
java.lang.NullPointerException |
if |
Public methods
setMarker
public @NonNull Place.Builder setMarker(@NonNull PlaceMarker marker)
Sets the PlaceMarker that specifies how this place is to be displayed on a map.
Unless set with this method, the place will not have a marker.
| Throws | |
|---|---|
java.lang.NullPointerException |
if |