Model.Builder


public final class Model.Builder


A builder of Model.

Summary

Public constructors

Public methods

@NonNull Model

Constructs the Model defined by this builder.

@NonNull Model.Builder

Sets the car manufacturer.

@NonNull Model.Builder

Sets the car model name.

@NonNull Model.Builder

Sets the car model year.

Public constructors

Builder

Added in 1.1.0
public Builder()

Public methods

build

Added in 1.1.0
public @NonNull Model build()

Constructs the Model defined by this builder.

setManufacturer

Added in 1.1.0
public @NonNull Model.Builder setManufacturer(@NonNull CarValue<String> manufacturer)

Sets the car manufacturer.

Throws
java.lang.NullPointerException

if manufacturer is null

setName

Added in 1.1.0
public @NonNull Model.Builder setName(@NonNull CarValue<String> name)

Sets the car model name.

Throws
java.lang.NullPointerException

if name is null

setYear

Added in 1.1.0
public @NonNull Model.Builder setYear(@NonNull CarValue<Integer> year)

Sets the car model year.

Throws
java.lang.NullPointerException

if year is null