public static enum CorrectionRequest.Type extends Enum<CorrectionRequest.Type>
| Enum Constant and Description |
|---|
WRONG_PETROL_STATION_BRAND
Correction for the stations brand
Requires a correction value of String
|
WRONG_PETROL_STATION_HOUSE_NUMBER
Correction for the stations house number
Requires a correction value of String
|
WRONG_PETROL_STATION_LOCATION
Correction of the stations location data
Requires a correction value of String
|
WRONG_PETROL_STATION_NAME
Correction of the stations name
Requires a correction value of String
|
WRONG_PETROL_STATION_PLACE
Correction of the stations city
Requires a correction value of String
|
WRONG_PETROL_STATION_POSTCODE
Correction for the stations post code
Requires a correction value of Numeric (5 digits)
|
WRONG_PETROL_STATION_STREET
Correction for the stations street
Requires a correction value of String
|
WRONG_PRICE_DIESEL
Correction of the price for Diesel
Requires a correction value of Float (#.##)
|
WRONG_PRICE_E10
Correction of the price for E10 gasoline
Requires a correction value of Float (#.##)
|
WRONG_PRICE_E5
Correction of the price for E5 gasoline
Requires a correction value of Float (#.##)
|
WRONG_STATUS_CLOSED
Correction of the current opening status of the gas station if closed
Requires no correction value
|
WRONG_STATUS_OPEN
Correction of the current opening status of the gas station if open
Requires no correction value
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
requiresCorrectionValue()
Determines if the correction type requires a correction value
|
String |
toQueryParam() |
static CorrectionRequest.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CorrectionRequest.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CorrectionRequest.Type WRONG_PETROL_STATION_NAME
public static final CorrectionRequest.Type WRONG_STATUS_OPEN
public static final CorrectionRequest.Type WRONG_STATUS_CLOSED
public static final CorrectionRequest.Type WRONG_PRICE_E5
public static final CorrectionRequest.Type WRONG_PRICE_E10
public static final CorrectionRequest.Type WRONG_PRICE_DIESEL
public static final CorrectionRequest.Type WRONG_PETROL_STATION_BRAND
public static final CorrectionRequest.Type WRONG_PETROL_STATION_STREET
public static final CorrectionRequest.Type WRONG_PETROL_STATION_HOUSE_NUMBER
public static final CorrectionRequest.Type WRONG_PETROL_STATION_POSTCODE
public static final CorrectionRequest.Type WRONG_PETROL_STATION_PLACE
public static final CorrectionRequest.Type WRONG_PETROL_STATION_LOCATION
public static CorrectionRequest.Type[] values()
for (CorrectionRequest.Type c : CorrectionRequest.Type.values()) System.out.println(c);
public static CorrectionRequest.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toQueryParam()
public boolean requiresCorrectionValue()
Copyright © 2017. All rights reserved.