Enum GeoLocation.Unit
- java.lang.Object
-
- java.lang.Enum<GeoLocation.Unit>
-
- co.elasticsearch.enterprisesearch.client.model.GeoLocation.Unit
-
- All Implemented Interfaces:
Serializable,Comparable<GeoLocation.Unit>
- Enclosing class:
- GeoLocation
public static enum GeoLocation.Unit extends Enum<GeoLocation.Unit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTIMETERSFEETINCHESKILOMETERSMETERSMILESMILLIMETERSYARDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeoLocation.UnitfindByValue(String value)StringgetValue()static GeoLocation.UnitvalueOf(String name)Returns the enum constant of this type with the specified name.static GeoLocation.Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLIMETERS
public static final GeoLocation.Unit MILLIMETERS
-
CENTIMETERS
public static final GeoLocation.Unit CENTIMETERS
-
METERS
public static final GeoLocation.Unit METERS
-
KILOMETERS
public static final GeoLocation.Unit KILOMETERS
-
INCHES
public static final GeoLocation.Unit INCHES
-
FEET
public static final GeoLocation.Unit FEET
-
YARDS
public static final GeoLocation.Unit YARDS
-
MILES
public static final GeoLocation.Unit MILES
-
-
Method Detail
-
values
public static GeoLocation.Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GeoLocation.Unit c : GeoLocation.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeoLocation.Unit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
findByValue
public static GeoLocation.Unit findByValue(String value)
-
getValue
public String getValue()
-
-