Enum ImperialUnits
- java.lang.Object
-
- java.lang.Enum<ImperialUnits>
-
- org.linuxforhealth.fhir.search.location.uom.standard.ImperialUnits
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ImperialUnits>
public enum ImperialUnits extends java.lang.Enum<ImperialUnits>
British Imperial lengths
The factors are normalized to meters.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FATHOM
FATHOM_CI
FOOT
FOOT_CI
INCH
INCH_CI
MILE
MILE_CI
NAUTICAL_MILE
NAUTICAL_MILE_CI
PACE
PACE_CI
ROD
ROD_CI
SURVEYORS_CHAIN
SURVEYORS_CHAIN_CI
SURVEYORS_LINK
SURVEYORS_LINK_CI
YARD
YARD_CI
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
factor()
static ImperialUnits
fromValue(java.lang.String value)
java.lang.String
value()
static ImperialUnits
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ImperialUnits[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCH
public static final ImperialUnits INCH
-
INCH_CI
public static final ImperialUnits INCH_CI
-
FOOT
public static final ImperialUnits FOOT
-
FOOT_CI
public static final ImperialUnits FOOT_CI
-
ROD
public static final ImperialUnits ROD
-
ROD_CI
public static final ImperialUnits ROD_CI
-
SURVEYORS_CHAIN
public static final ImperialUnits SURVEYORS_CHAIN
-
SURVEYORS_CHAIN_CI
public static final ImperialUnits SURVEYORS_CHAIN_CI
-
SURVEYORS_LINK
public static final ImperialUnits SURVEYORS_LINK
-
SURVEYORS_LINK_CI
public static final ImperialUnits SURVEYORS_LINK_CI
-
FATHOM
public static final ImperialUnits FATHOM
-
FATHOM_CI
public static final ImperialUnits FATHOM_CI
-
PACE
public static final ImperialUnits PACE
-
PACE_CI
public static final ImperialUnits PACE_CI
-
YARD
public static final ImperialUnits YARD
-
YARD_CI
public static final ImperialUnits YARD_CI
-
MILE
public static final ImperialUnits MILE
-
MILE_CI
public static final ImperialUnits MILE_CI
-
NAUTICAL_MILE
public static final ImperialUnits NAUTICAL_MILE
-
NAUTICAL_MILE_CI
public static final ImperialUnits NAUTICAL_MILE_CI
-
-
Method Detail
-
values
public static ImperialUnits[] 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 (ImperialUnits c : ImperialUnits.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImperialUnits 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
-
value
public java.lang.String value()
-
factor
public java.lang.Double factor()
-
fromValue
public static ImperialUnits fromValue(java.lang.String value)
-
-