CabinTemperatureProfile.Builder


public final class CabinTemperatureProfile.Builder


A builder for CabinTemperatureProfile.

Summary

Public constructors

Creates an instance of builder.

Public methods

@NonNull CabinTemperatureProfile

Create a CabinTemperatureProfile.

@NonNull CabinTemperatureProfile.Builder
setCarZoneSetsToCabinCelsiusTemperatureRanges(
    @NonNull Map<Set<CarZone>, Pair<FloatFloat>> carZoneSetsToCabinCelsiusTemperatureRanges
)

Sets the car zone to Celsius range mapping for the CabinTemperatureProfile.

@NonNull CabinTemperatureProfile.Builder
setCelsiusSupportedIncrement(float celsiusSupportedIncrement)

Sets the supported Celsius increment for the CabinTemperatureProfile.

@NonNull CabinTemperatureProfile.Builder
setFahrenheitSupportedIncrement(float fahrenheitSupportedIncrement)

Sets the supported Fahrenheit increment for the CabinTemperatureProfile.

@NonNull CabinTemperatureProfile.Builder
setSupportedMinMaxCelsiusRange(
    @NonNull Pair<FloatFloat> supportedMinMaxCelsiusRange
)

Sets the supported min/max Celsius range for the CabinTemperatureProfile.

@NonNull CabinTemperatureProfile.Builder
setSupportedMinMaxFahrenheitRange(
    @NonNull Pair<FloatFloat> supportedMinMaxFahrenheitRange
)

Sets the supported min/max Fahrenheit range for the CabinTemperatureProfile.

Public constructors

Builder

Added in 1.3.0
public Builder()

Creates an instance of builder.

Public methods

build

Added in 1.3.0
public @NonNull CabinTemperatureProfile build()

Create a CabinTemperatureProfile.

setCarZoneSetsToCabinCelsiusTemperatureRanges

Added in 1.3.0
public @NonNull CabinTemperatureProfile.Builder setCarZoneSetsToCabinCelsiusTemperatureRanges(
    @NonNull Map<Set<CarZone>, Pair<FloatFloat>> carZoneSetsToCabinCelsiusTemperatureRanges
)

Sets the car zone to Celsius range mapping for the CabinTemperatureProfile.

setCelsiusSupportedIncrement

Added in 1.3.0
public @NonNull CabinTemperatureProfile.Builder setCelsiusSupportedIncrement(float celsiusSupportedIncrement)

Sets the supported Celsius increment for the CabinTemperatureProfile.

setFahrenheitSupportedIncrement

Added in 1.3.0
public @NonNull CabinTemperatureProfile.Builder setFahrenheitSupportedIncrement(float fahrenheitSupportedIncrement)

Sets the supported Fahrenheit increment for the CabinTemperatureProfile.

setSupportedMinMaxCelsiusRange

Added in 1.3.0
public @NonNull CabinTemperatureProfile.Builder setSupportedMinMaxCelsiusRange(
    @NonNull Pair<FloatFloat> supportedMinMaxCelsiusRange
)

Sets the supported min/max Celsius range for the CabinTemperatureProfile.

setSupportedMinMaxFahrenheitRange

Added in 1.3.0
public @NonNull CabinTemperatureProfile.Builder setSupportedMinMaxFahrenheitRange(
    @NonNull Pair<FloatFloat> supportedMinMaxFahrenheitRange
)

Sets the supported min/max Fahrenheit range for the CabinTemperatureProfile.