public final class

Metadata.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.model.Metadata.Builder

Overview

A builder for Metadata.

Summary

Constructors
publicBuilder()

Returns an empty Metadata.Builder instance.

publicBuilder(Metadata metadata)

Returns a new Metadata.Builder with the data from the given Metadata instance.

Methods
public Metadatabuild()

Returns a Metadata instance defined by this builder.

public Metadata.BuildersetPlace(Place place)

Sets a Place used for showing Distance and PlaceMarker information.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Returns an empty Metadata.Builder instance.

public Builder(Metadata metadata)

Returns a new Metadata.Builder with the data from the given Metadata instance.

Methods

public Metadata.Builder setPlace(Place place)

Sets a Place used for showing Distance and PlaceMarker information.

public Metadata build()

Returns a Metadata instance defined by this builder.