public enum StringToDistanceConverter extends Enum<StringToDistanceConverter> implements Converter<String,org.springframework.data.geo.Distance>
Distance instances from String representations. The supported format is a decimal
followed by whitespace and a metric abbreviation. We currently support the following abbreviations:
.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.geo.Distance |
convert(String source) |
static StringToDistanceConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringToDistanceConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringToDistanceConverter INSTANCE
public static StringToDistanceConverter[] values()
for (StringToDistanceConverter c : StringToDistanceConverter.values()) System.out.println(c);
public static StringToDistanceConverter 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 nullCopyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.