EnergyProfile.Builder
public final class EnergyProfile.Builder
A builder of EnergyProfile.
Summary
Public constructors |
|---|
Builder() |
Public methods |
|
|---|---|
@NonNull EnergyProfile |
build()Constructs the |
@NonNull EnergyProfile.Builder |
setEvConnectorTypes(@NonNull CarValue<List<Integer>> evConnectorTypes)Sets the cars EV connector types. |
@NonNull EnergyProfile.Builder |
setFuelTypes(@NonNull CarValue<List<Integer>> fuelTypes)Sets the cars fuel types. |
Public constructors
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 |
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 |