Interface Unit
- All Superinterfaces:
ComboAlias
- All Known Implementing Classes:
DistanceUnit
,WeightUnit
An interface for unit enumerations.
- Since:
- 5.2
- Version:
- 5.2
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the ratio of this distance unit to a reference unit.Returns the unit name.name()
Returns the enumeration name.Methods inherited from interface org.deltava.beans.ComboAlias
getComboAlias, getComboName
-
Method Details
-
getUnitName
-
getFactor
double getFactor()Returns the ratio of this distance unit to a reference unit.- Returns:
- the ratio
-
name
-