TollCard

public final class TollCard
extends Object

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


Information about toll card capabilities in a car.

Summary

Nested classes

class TollCard.Builder

A builder of TollCard

Constants

int TOLLCARD_STATE_INVALID

Toll card state invalid.

int TOLLCARD_STATE_NOT_INSERTED

Toll card state is not inserted.

int TOLLCARD_STATE_UNKNOWN

Toll card state is unknown.

int TOLLCARD_STATE_VALID

Toll card state is valid.

Public methods

boolean equals(Object other)
CarValue<Integer> getCardState()

Returns the toll card state if available.

int hashCode()
String toString()

Inherited methods

Constants

TOLLCARD_STATE_INVALID

public static final int TOLLCARD_STATE_INVALID

Toll card state invalid.

On some vehicles this may be that the toll card is inserted but not valid while other vehicles might not have a toll card inserted.

Constant Value: 2 (0x00000002)

TOLLCARD_STATE_NOT_INSERTED

public static final int TOLLCARD_STATE_NOT_INSERTED

Toll card state is not inserted.

Will be returned if the car hardware is able to detect that the card is not inserted.

Constant Value: 3 (0x00000003)

TOLLCARD_STATE_UNKNOWN

public static final int TOLLCARD_STATE_UNKNOWN

Toll card state is unknown.

Constant Value: 0 (0x00000000)

TOLLCARD_STATE_VALID

public static final int TOLLCARD_STATE_VALID

Toll card state is valid.

Constant Value: 1 (0x00000001)

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getCardState

public CarValue<Integer> getCardState ()

Returns the toll card state if available.

Returns
CarValue<Integer>

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String