EnergyProfile.Builder

public final class EnergyProfile.Builder


A builder of EnergyProfile.

Summary

Public constructors

Public methods

@NonNull EnergyProfile

Constructs the EnergyProfile defined by this builder.

@NonNull EnergyProfile.Builder

Sets the cars EV connector types.

@NonNull EnergyProfile.Builder

Sets the cars fuel types.

Public constructors

Builder

Added in 1.1.0
public Builder()

Public methods

build

Added in 1.1.0
public @NonNull EnergyProfile build()

Constructs the EnergyProfile defined by this builder.

Any fields which have not been set are added with null value and STATUS_UNIMPLEMENTED.

setEvConnectorTypes

Added in 1.1.0
public @NonNull EnergyProfile.Builder setEvConnectorTypes(@NonNull CarValue<List<Integer>> evConnectorTypes)

Sets the cars EV connector types.

Throws
java.lang.NullPointerException

if evConnectorTypes is null

setFuelTypes

Added in 1.1.0
public @NonNull EnergyProfile.Builder setFuelTypes(@NonNull CarValue<List<Integer>> fuelTypes)

Sets the cars fuel types.

Throws
java.lang.NullPointerException

if fuelTypes is null