Place.Builder


class Place.Builder


A builder of Place.

Summary

Public constructors

Builder(location: CarLocation)

Returns a builder instance for a CarLocation.

Builder(place: Place)

Returns a Builder instance with the same data as the given Place instance.

Public functions

Place

Constructs the Place defined by this builder.

Place.Builder

Sets the PlaceMarker that specifies how this place is to be displayed on a map.

Public constructors

Builder

Added in 1.0.0
Builder(location: CarLocation)

Returns a builder instance for a CarLocation.

Parameters
location: CarLocation

the geographical location associated with the place

Throws
java.lang.NullPointerException

if location is null

Builder

Added in 1.0.0
Builder(place: Place)

Returns a Builder instance with the same data as the given Place instance.

Public functions

build

Added in 1.0.0
fun build(): Place

Constructs the Place defined by this builder.

setMarker

Added in 1.0.0
fun setMarker(marker: PlaceMarker): Place.Builder

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 marker is null