Class BaseUnit

  • All Implemented Interfaces:
    Signed

    public class BaseUnit
    extends Unit
    • Constructor Detail

      • BaseUnit

        public BaseUnit​(String symbol)
    • Method Detail

      • getNormalizedUnit

        public Unit getNormalizedUnit()
        Description copied from class: Unit
        Calculate the base unit or a compound unit that consists of base units only, without any prefixes. This is the target unit of the converter.
        Specified by:
        getNormalizedUnit in class Unit
        Returns:
        base unit/compound of base units.
      • getConverter

        public Converter getConverter()
        Description copied from class: Unit
        Return a converter for a conversion of this unit to the normalized unit.
        Specified by:
        getConverter in class Unit
        Returns:
      • getSignature

        public long getSignature()