Enum DistanceUnit
- java.lang.Object
-
- java.lang.Enum<DistanceUnit>
-
- org.citydb.query.filter.selection.operator.spatial.DistanceUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DistanceUnit>
public enum DistanceUnit extends java.lang.Enum<DistanceUnit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTIMETER
DEGREE
DMS
FOOT
FOOT_SURVEY_US
INCH
KILOMETER
METER
MILE
MILLIMETER
NAUTICAL_MILE
RADIAN
YARD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DistanceUnit
fromSymbol(java.lang.String symbol)
java.lang.String
getSymbol()
java.lang.String
toString()
javax.measure.Unit<?>
toUnit()
static DistanceUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DistanceUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METER
public static final DistanceUnit METER
-
KILOMETER
public static final DistanceUnit KILOMETER
-
CENTIMETER
public static final DistanceUnit CENTIMETER
-
MILLIMETER
public static final DistanceUnit MILLIMETER
-
MILE
public static final DistanceUnit MILE
-
NAUTICAL_MILE
public static final DistanceUnit NAUTICAL_MILE
-
FOOT_SURVEY_US
public static final DistanceUnit FOOT_SURVEY_US
-
FOOT
public static final DistanceUnit FOOT
-
INCH
public static final DistanceUnit INCH
-
YARD
public static final DistanceUnit YARD
-
RADIAN
public static final DistanceUnit RADIAN
-
DEGREE
public static final DistanceUnit DEGREE
-
DMS
public static final DistanceUnit DMS
-
-
Method Detail
-
values
public static DistanceUnit[] 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 (DistanceUnit c : DistanceUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DistanceUnit valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromSymbol
public static DistanceUnit fromSymbol(java.lang.String symbol)
-
toUnit
public javax.measure.Unit<?> toUnit()
-
getSymbol
public java.lang.String getSymbol()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<DistanceUnit>
-
-