public enum UnitOfMeasurement extends java.lang.Enum<UnitOfMeasurement>
Based on Recommendation N°. 20 - Codes for Units of Measure Used in International Trade
Enum Constant and Description |
---|
ARTICLE
A unit of count defining the number of articles (items).
|
DAY
The day count
|
HECTARE
The Hectare (ha).
|
HOUR
The Hour (h).
|
KILOGRAM
The Kilogram (kg).
|
KILOMETER
The Kilometer (km).
|
KILOWATT_HOUR
The Kilowatt hour (kWh).
|
LITRE
The Liter (l).
|
LUMP_SUM
The lump sum.
|
METER
The Meter (m).
|
METER_CUBIC
The cubic meter (m3).
|
METER_SQUARE
The square meter (m2).
|
MILE
The Mile.
|
MILLIMETER
The Millimeter (mm).
|
MILLIMETER_SQUARE
The square millimeter (mm2).
|
MINUTE
The Minute (min).
|
MONTH
The Month.
|
PAIR
The number of pairs.
|
PERCENT
The Percent (%).
|
SECOND
The Second (s).
|
SET
A number of objects grouped together to a set
|
TON_METRIC
The metric ton (t).
|
UNIT
A unit of count defining the number of pieces
|
WEEK
The week.
|
Modifier and Type | Method and Description |
---|---|
static UnitOfMeasurement |
getByCode(java.lang.String code)
Gets the type by code.
|
java.lang.String |
getCode()
Gets the code.
|
java.lang.String |
getDescription()
Gets the description.
|
java.lang.String |
toString() |
static UnitOfMeasurement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnitOfMeasurement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitOfMeasurement ARTICLE
A unit of count defining the number of articles (items).
public static final UnitOfMeasurement DAY
The day count
public static final UnitOfMeasurement HECTARE
The Hectare (ha).
public static final UnitOfMeasurement HOUR
The Hour (h).
public static final UnitOfMeasurement KILOGRAM
The Kilogram (kg).
public static final UnitOfMeasurement KILOMETER
The Kilometer (km).
public static final UnitOfMeasurement KILOWATT_HOUR
The Kilowatt hour (kWh).
public static final UnitOfMeasurement LITRE
The Liter (l).
public static final UnitOfMeasurement LUMP_SUM
The lump sum.
public static final UnitOfMeasurement METER
The Meter (m).
public static final UnitOfMeasurement METER_CUBIC
The cubic meter (m3).
public static final UnitOfMeasurement METER_SQUARE
The square meter (m2).
public static final UnitOfMeasurement MILE
The Mile. 1609,344 m
public static final UnitOfMeasurement MILLIMETER
The Millimeter (mm).
public static final UnitOfMeasurement MILLIMETER_SQUARE
The square millimeter (mm2).
public static final UnitOfMeasurement MINUTE
The Minute (min).
public static final UnitOfMeasurement MONTH
The Month.
public static final UnitOfMeasurement PAIR
The number of pairs.
public static final UnitOfMeasurement PERCENT
The Percent (%).
public static final UnitOfMeasurement SECOND
The Second (s).
public static final UnitOfMeasurement SET
A number of objects grouped together to a set
public static final UnitOfMeasurement TON_METRIC
The metric ton (t).
public static final UnitOfMeasurement UNIT
A unit of count defining the number of pieces
public static final UnitOfMeasurement WEEK
The week.
public static UnitOfMeasurement getByCode(java.lang.String code)
Gets the type by code.
code
- the codepublic java.lang.String getCode()
Gets the code.
public java.lang.String getDescription()
Gets the description.
public java.lang.String toString()
toString
in class java.lang.Enum<UnitOfMeasurement>
public static UnitOfMeasurement valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static UnitOfMeasurement[] values()
for (UnitOfMeasurement c : UnitOfMeasurement.values()) System.out.println(c);
Copyright © 2014-2018 Konik.io. All Rights Reserved.