public final class

Model.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.hardware.info.Model.Builder

Overview

A builder of Model.

Summary

Constructors
publicBuilder()

Methods
public Modelbuild()

Constructs the Model defined by this builder.

public Model.BuildersetManufacturer(CarValue<java.lang.String> manufacturer)

Sets the car manufacturer.

public Model.BuildersetName(CarValue<java.lang.String> name)

Sets the car model name.

public Model.BuildersetYear(CarValue<java.lang.Integer> year)

Sets the car model year.

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

Constructors

public Builder()

Methods

public Model.Builder setName(CarValue<java.lang.String> name)

Sets the car model name.

public Model.Builder setYear(CarValue<java.lang.Integer> year)

Sets the car model year.

public Model.Builder setManufacturer(CarValue<java.lang.String> manufacturer)

Sets the car manufacturer.

public Model build()

Constructs the Model defined by this builder.