Package ucar.units

Class SupplementaryBaseQuantity

  • All Implemented Interfaces:
    Serializable, Comparable<BaseQuantity>, Base

    public final class SupplementaryBaseQuantity
    extends BaseQuantity
    Provides support for supplementary base quantities. A supplementary base quantity is one that is dimensionless (e.g. solid angle). Instances of this class are immutable.
    See Also:
    Serialized Form
    • Constructor Detail

      • SupplementaryBaseQuantity

        public SupplementaryBaseQuantity​(String name,
                                         String symbol)
                                  throws NameException
        Constructs from a name and symbol.
        Parameters:
        name - The name of the quantity.
        symbol - The symbol for the quantity.
        Throws:
        NameException - Bad quantity name.
      • SupplementaryBaseQuantity

        protected SupplementaryBaseQuantity​(String name,
                                            String symbol,
                                            boolean trusted)
        Constructs from a name and symbol. This is a trusted constructor for use by the superclass only.
        Parameters:
        name - The name of the quantity.
        symbol - The symbol for the quantity.
    • Method Detail

      • isDimensionless

        public boolean isDimensionless()
        Indicates whether or not this quantity is dimensionless. Supplementary base quantities are dimensionless by definition.
        Specified by:
        isDimensionless in interface Base
        Specified by:
        isDimensionless in class BaseQuantity
        Returns:
        true.