TollCard.Builder

public static final class TollCard.Builder
extends Object

java.lang.Object
   ↳ androidx.car.app.hardware.info.TollCard.Builder


A builder of TollCard.

Summary

Public constructors

Builder()

Public methods

TollCard build()

Constructs the TollCard defined by this builder.

TollCard.Builder setCardState(CarValue<Integer> cardState)

Sets the toll card state.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public TollCard build ()

Constructs the TollCard defined by this builder.

Returns
TollCard

setCardState

public TollCard.Builder setCardState (CarValue<Integer> cardState)

Sets the toll card state.

Parameters
cardState CarValue

Returns
TollCard.Builder

Throws
NullPointerException if cardState is null