TollCard.Builder
public final class TollCard.Builder
A builder of TollCard.
Summary
Public constructors |
|---|
Builder() |
Public methods |
|
|---|---|
@NonNull TollCard |
build()Constructs the |
@NonNull TollCard.Builder |
setCardState(@NonNull CarValue<Integer> cardState)Sets the toll card state. |
Public constructors
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 |