Place.Builder


public final class Place.Builder


A builder of Place.

Summary

Public constructors

Returns a builder instance for a CarLocation.

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

Public methods

@NonNull Place

Constructs the Place defined by this builder.

@NonNull 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
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 location is null

Builder

Added in 1.0.0
public Builder(@NonNull Place place)

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

Public methods

build

Added in 1.0.0
public @NonNull Place build()

Constructs the Place defined by this builder.

setMarker

Added in 1.0.0
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 marker is null