public enum SearchLocationUnit extends Enum<SearchLocationUnit>
| Enum Constant and Description |
|---|
KM
Enum value km.
|
MI
Enum value mi.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchLocationUnit |
fromString(String value)
Parses a serialized value to a SearchLocationUnit instance.
|
String |
toString() |
static SearchLocationUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchLocationUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchLocationUnit KM
public static final SearchLocationUnit MI
public static SearchLocationUnit[] values()
for (SearchLocationUnit c : SearchLocationUnit.values()) System.out.println(c);
public static SearchLocationUnit 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 SearchLocationUnit fromString(String value)
value - the serialized value to parse.public String toString()
toString in class Enum<SearchLocationUnit>Copyright © 2022. All rights reserved.