- All Known Implementing Classes:
- CurrencyUnit, LengthUnit, MassUnit, TimeUnit, Unitless
public interface Unit
Interface for units of measurement. A unit consists of a conversion factor,
which converts the unit to the specified base unit for the measurement type.
The conversion factor is the amount to multiply the unit by to convert it to
the base type. For instance, the conversion factor for Statute Miles is
1609.344, which is the number of meters (the base length unit) in a statute
mile. The abbreviation is used when formating a measurement.
- Author:
- Edward Swing