CarZone.Builder
public final class CarZone.Builder
A builder for instantiating CarZone.
Summary
Public constructors |
|---|
Builder() |
Public methods |
|
|---|---|
@NonNull CarZone |
build()Constructs the |
@NonNull CarZone.Builder |
setColumn(int column)Sets the column value for the |
@NonNull CarZone.Builder |
setRow(int row)Sets the row value for the |
Public constructors
Public methods
build
public @NonNull CarZone build()
Constructs the CarZone defined by this builder.
CAR_ZONE_ROW_ALL will be used by default if the row value is not set using setRow. CAR_ZONE_COLUMN_ALL will be used by default if the column value is not set setColumn.
setColumn
public @NonNull CarZone.Builder setColumn(int column)
Sets the column value for the CarZone.
The column value should be in the CarZoneColumn list.
setRow
public @NonNull CarZone.Builder setRow(int row)
Sets the row value for the CarZone.
The row value should be in the CarZoneRow list.