Package ucar.units

Class RegularBaseQuantity

    • Constructor Detail

      • RegularBaseQuantity

        public RegularBaseQuantity​(String name,
                                   String symbol)
                            throws NameException
        Constructs from a name and symbol.
        Parameters:
        name - The name of the base unit.
        symbol - The symbol of the base unit.
        Throws:
        NameException
      • RegularBaseQuantity

        protected RegularBaseQuantity​(String name,
                                      String symbol,
                                      boolean trusted)
        Constructs from a name and a symbol. This is a trusted constructor for use by the parent class only.
        Parameters:
        name - The name of the base unit.
        symbol - The symbol of the base unit.
    • Method Detail

      • isDimensionless

        public boolean isDimensionless()
        Indicates if this base quantity is dimensionless. Regular base quantities are always dimensionfull.
        Specified by:
        isDimensionless in interface Base
        Specified by:
        isDimensionless in class BaseQuantity
        Returns:
        false.