FuelPriceKt

public final class FuelPriceKt


Summary

Public methods

static final @NonNull FuelPrice
fuelPrice(
    @NonNull FuelPrice.FuelType type,
    @NonNull Money price,
    @NonNull Instant updateTime
)

Builds a new FuelPrice.

Public methods

fuelPrice

public static final @NonNull FuelPrice fuelPrice(
    @NonNull FuelPrice.FuelType type,
    @NonNull Money price,
    @NonNull Instant updateTime
)

Builds a new FuelPrice.

Parameters
@NonNull FuelPrice.FuelType type

the type of fuel

@NonNull Money price

the price of the fuel

@NonNull Instant updateTime

the time the fuel price was last updated

Returns
@NonNull FuelPrice

the constructed FuelPrice