TollCard.Builder

public final class TollCard.Builder


A builder of TollCard.

Summary

Public constructors

Public methods

@NonNull TollCard

Constructs the TollCard defined by this builder.

@NonNull TollCard.Builder

Sets the toll card state.

Public constructors

Builder

Added in 1.1.0
public Builder()

Public methods

build

Added in 1.1.0
public @NonNull TollCard build()

Constructs the TollCard defined by this builder.

setCardState

Added in 1.1.0
public @NonNull TollCard.Builder setCardState(@NonNull CarValue<Integer> cardState)

Sets the toll card state.

Throws
java.lang.NullPointerException

if cardState is null