public static enum NominatimSearch.NominatimFormatType extends Enum<NominatimSearch.NominatimFormatType>
| Modifier and Type | Method and Description |
|---|---|
static NominatimSearch.NominatimFormatType |
fromString(String inputValue)
Static method to get an enum based on a string value.
|
String |
toString()
This method is annotated with
JsonValue,
so that jackson will serialize the enum value to
the (lowercase) value. |
static NominatimSearch.NominatimFormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NominatimSearch.NominatimFormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NominatimSearch.NominatimFormatType HTML
public static final NominatimSearch.NominatimFormatType XML
public static final NominatimSearch.NominatimFormatType JSON
public static final NominatimSearch.NominatimFormatType JSONV2
public static NominatimSearch.NominatimFormatType[] values()
for (NominatimSearch.NominatimFormatType c : NominatimSearch.NominatimFormatType.values()) System.out.println(c);
public static NominatimSearch.NominatimFormatType 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 static NominatimSearch.NominatimFormatType fromString(String inputValue)
JsonCreator,
which allows the client to send case insensitive string
values (like "jSon"), which will be converted to the
correct enum value.inputValue - public String toString()
JsonValue,
so that jackson will serialize the enum value to
the (lowercase) value.toString in class Enum<NominatimSearch.NominatimFormatType>Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.