Package lumis.portal.bigdata.query
Enum DistanceUnit
- java.lang.Object
-
- java.lang.Enum<DistanceUnit>
-
- lumis.portal.bigdata.query.DistanceUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<DistanceUnit>
@StableMinor(version="14.1", sinceVersion="9.0") public enum DistanceUnit extends Enum<DistanceUnit>
Distance units.- Since:
- 9.0.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTIMETER
Centimeter.FEET
Feet.INCH
Inch.KILOMETER
Kilometer.METER
Meter.MILE
Mile.MILLIMETER
Millimeter.NAUTICAL_MILE
Nautical mile.YARD
Yard.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DistanceUnit
valueOf(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
-
MILE
public static final DistanceUnit MILE
Mile.- Since:
- 9.0.0
-
YARD
public static final DistanceUnit YARD
Yard.- Since:
- 9.0.0
-
FEET
public static final DistanceUnit FEET
Feet.- Since:
- 9.0.0
-
INCH
public static final DistanceUnit INCH
Inch.- Since:
- 9.0.0
-
KILOMETER
public static final DistanceUnit KILOMETER
Kilometer.- Since:
- 9.0.0
-
METER
public static final DistanceUnit METER
Meter.- Since:
- 9.0.0
-
CENTIMETER
public static final DistanceUnit CENTIMETER
Centimeter.- Since:
- 9.0.0
-
MILLIMETER
public static final DistanceUnit MILLIMETER
Millimeter.- Since:
- 9.0.0
-
NAUTICAL_MILE
public static final DistanceUnit NAUTICAL_MILE
Nautical mile.- Since:
- 9.0.0
-
-
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(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
-
-