TollCard.Builder


class TollCard.Builder


A builder of TollCard.

Summary

Public constructors

Public functions

TollCard

Constructs the TollCard defined by this builder.

TollCard.Builder
setCardState(cardState: CarValue<Int!>)

Sets the toll card state.

Public constructors

Builder

Added in 1.1.0
Builder()

Public functions

build

Added in 1.1.0
fun build(): TollCard

Constructs the TollCard defined by this builder.

setCardState

Added in 1.1.0
fun setCardState(cardState: CarValue<Int!>): TollCard.Builder

Sets the toll card state.

Throws
java.lang.NullPointerException

if cardState is null