Class UnitDefinition


  • public final class UnitDefinition
    extends Object
    This class holds a unit and associates it with its available prefixes and aliases.

    It also allows overriding the symbol to use, in cases where the unit itself lacks this piece of information.

    • Method Detail

      • withStandardPrefixes

        public static UnitDefinition withStandardPrefixes​(Unit<?> unit)
      • getUnit

        public Unit<?> getUnit()
      • getSymbolOverride

        public String getSymbolOverride()
      • getAliases

        public List<String> getAliases()