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 Summary

    Modifier and Type
    Method
    Description
    double
    Returns the ratio of this distance unit to a reference unit.
    Returns the unit name.
    Returns the enumeration name.

    Methods inherited from interface org.deltava.beans.ComboAlias

    getComboAlias, getComboName
  • 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