Interface Unit

All Superinterfaces:
ComboAlias
All Known Implementing Classes:
DistanceUnit, WeightUnit

public interface Unit extends ComboAlias
An interface for unit enumerations.
Since:
5.2
Version:
5.2
Author:
Luke
  • Method Details

    • getUnitName

      String getUnitName()
      Returns the unit name.
      Returns:
      the full name
    • getFactor

      double getFactor()
      Returns the ratio of this distance unit to a reference unit.
      Returns:
      the ratio
    • name

      String name()
      Returns the enumeration name.
      Returns:
      the name