public final class

EnergyProfile.Builder

extends java.lang.Object

 java.lang.Object

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

Overview

A builder of EnergyProfile.

Summary

Constructors
publicBuilder()

Methods
public EnergyProfilebuild()

Constructs the EnergyProfile defined by this builder.

public EnergyProfile.BuildersetEvConnectorTypes(CarValue<java.util.List> evConnectorTypes)

Sets the cars EV connector types.

public EnergyProfile.BuildersetFuelTypes(CarValue<java.util.List> fuelTypes)

Sets the cars fuel types.

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

Constructors

public Builder()

Methods

public EnergyProfile.Builder setEvConnectorTypes(CarValue<java.util.List> evConnectorTypes)

Sets the cars EV connector types.

public EnergyProfile.Builder setFuelTypes(CarValue<java.util.List> fuelTypes)

Sets the cars fuel types.

public EnergyProfile build()

Constructs the EnergyProfile defined by this builder.

Any fields which have not been set are added with null value and CarValue.STATUS_UNIMPLEMENTED.