Package ucar.units

Class UnitSymbol

    • Constructor Detail

      • UnitSymbol

        public UnitSymbol​(String symbol)
                   throws NameException
        Constructs from a symbol.
        Parameters:
        symbol - The symbol for the unit. Shall not be null.
        Throws:
        NameException
    • Method Detail

      • getName

        public String getName()
        Returns the name of the unit. Always returns null.
        Specified by:
        getName in class UnitID
        Returns:
        null.
      • getPlural

        public String getPlural()
        Returns the plural form of the name of the unit. Always returns null.
        Specified by:
        getPlural in class UnitID
        Returns:
        null.
      • getSymbol

        public String getSymbol()
        Returns the symbol for the unit.
        Specified by:
        getSymbol in class UnitID
        Returns:
        The symbol for the unit. Never null .
      • toString

        public String toString()
        Returns the string representation of this identifier.
        Specified by:
        toString in class UnitID
        Returns:
        The string representation of this identifier.