public final class GasPrices extends Object
If the station is closed, no gas prices will be available.
| Modifier and Type | Class and Description |
|---|---|
static class |
GasPrices.GasType
A set of requestable gas types
|
static class |
GasPrices.Status
A set of possible status flags of the station
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Float> |
getPrice(GasPrices.GasType gasType)
Returns the gas price, if available
|
GasPrices.Status |
getStatus()
Returns the stations status / availability.
|
boolean |
hasPrice(GasPrices.GasType gasType)
Determines if a gas price of a certain type is available
|
boolean |
hasPrices()
Determines if any price is available
|
public Optional<Float> getPrice(GasPrices.GasType gasType)
public boolean hasPrice(GasPrices.GasType gasType)
public boolean hasPrices()
public GasPrices.Status getStatus()
Copyright © 2017. All rights reserved.